简体   繁体   中英

Character '&' in XML Parsing iphone

I am using NSXMLParsing to parse an XML , whose formatting is not in my control

From XML it seems it's using UTF-8 encoding, however i get illegal character encoding error when a character like '&' comes into picture.

Due to this i have to go the dirty way of breaking strings and parsing.

Any way out?

Suggestions ?

Thanks Yogurt

It sounds like you have malformed XML. "&" is the start of an entity in XML, eg & or < . Having a raw "&" by itself that doesn't match an entity is illegal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM