开发者

Character '&' in XML Parsing iphone

开发者 https://www.devze.com 2023-02-06 23:30 出处:网络
I am using N开发者_运维百科SXMLParsing to parse an XML , whose formatting is not in my control

I am using N开发者_运维百科SXMLParsing 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, e.g. & or <. Having a raw "&" by itself that doesn't match an entity is illegal.

0

精彩评论

暂无评论...
验证码 换一张
取 消