cocoa - NSXMLParserErrorDomain error 73 for valid XML -
the problem was:
i'm parsing xml document validates, when try parse using nsxmlparser, error 73 (nsxmlparsergtrequirederror) before didendelement method gets called on last tag. there non-ascii characters (degree symbols, specifically) which, if replace ascii text ('deg', specifically), parse goes through w/o error. xml comes external source, can't change it; , so, i'd know why causing problem (and better, how address it!).
here's example of problematic xml:
<?xml version='1.0'?> <xml-status> <module path='p' title='t'> <reading status='100' path='temp' title='temp' units='°'>98.6</reading> </module> </xml-status>
i found add > end, , parse. looked @ how passing data parser, , saw converting string array of chars, computing length original string, hence discrepancy in lengths.
Comments
Post a Comment