objective c - Using an NSXMLParser to parse HTML -



objective c - Using an NSXMLParser to parse HTML -

i'm working on app aggregates feeds net , reformats content. i'm looking way parse html. given xml , html similar in construction thinking "maybe should utilize nsxmlparser" i'm using parse rss feeds , i've become comfortable using it, i'm running problem.

the parser not recognize <p> element. has no problem extracting elements <title>, or <img>, doesn't <p>. has tried doing this, , if have suggestion or work arounds issue? think xmlparser i'm doing , utilize it, obviously, if can't text in <p> elements it's useless me.

any suggestions welcome, ones suggesting different method entirely. i've looked 3rd party libraries doing i've read have bugs , much prefer utilize provided apple.

there's absolutely nil special "p" name of element. while hard sure because haven't provided illustration of html parsing, problem caused html not well-formed xml. in other words, using nsxmlparser work on xhtml, not plain-old html.

the "p" element found in html without matching closing tag, not valid xml. guess have convert html xhtml before trying parse nsxmlparser

html objective-c ios cocoa nsxmlparser

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -