0

I parsed my xml by using NSXMLParser and I got the data of like <title>,<details>,<subtitle> now I just want to publish this data on the UIWebView.

How can I achieve that?

Adam Link
  • 2,783
  • 4
  • 30
  • 44
user755278
  • 1,634
  • 3
  • 16
  • 32

1 Answers1

0

If you've parsed your data already, you have it stored in a set of variables, right?

You could substitute it into some HTML using stringWithFormat:, and then display it in a web view with

[myWebView loadHTMLString:aString baseURL:[NSURL URLWithString:@""]];

Alternatively, instead of parsing yout XML at all, you could just use XSLT to style it directly: see this answer if you want to go that route.

Community
  • 1
  • 1
Amy Worrall
  • 16,250
  • 3
  • 42
  • 65