PDA

View Full Version : Downloading XML




teguh123
May 10, 2011, 11:34 PM
XML as we know, encode things like & into something like &

Obviously user want to see & rather than &

Now what's the best way to change & into &?

URLDecode? In objective C?



chown33
May 11, 2011, 01:28 AM
URLDecoder makes no sense when parsing XML. URLs are encoded using "percent encoding":
http://en.wikipedia.org/wiki/Percent-encoding

XML uses a completely different coding scheme:
http://en.wikipedia.org/wiki/XML#Escaping