Yogurt
Yogurt

Reputation: 105

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

Upvotes: 0

Views: 386

Answers (1)

Lily Ballard
Lily Ballard

Reputation: 185721

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.

Upvotes: 3

Related Questions