开发者

Character '&' in XML Parsing iphone

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜