TouchCode XML parsing error

Posted by itsaboutcode on Stack Overflow See other posts from Stack Overflow or by itsaboutcode
Published on 2010-06-17T09:38:59Z Indexed on 2010/06/17 9:43 UTC
Read the original article Hit count: 253

Hi,

I have a xml document which has only one element in the document, which is

<error>error string<error>

But when i try to parse it, it says this document has no element at all. In other words when i try to access the rootElement it says "null"

   CXMLDocument *rssParser = [[[CXMLDocument alloc] initWithContentsOfURL:url options:0 error:nil] autorelease];

   NSLog(@"Root: %@",[[rssParser rootElement] name]);

Please tell me what is wroing with this.

Thanks

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about Xml