, etc.) in iOS? In the NSX...">

How to parse XML data having special characters in iOS?

How to parse XML data that have special characters (', ", <,>, etc.) in iOS? In the NSXmlParser delegate, when he reads special characters (' and), he considers this to be an open new addition? can i ignore these special characters?

+3
source share
1 answer

XML with these characters is not valid if they are not contained in CDATA. (In this case, the xml parser should not have problems with them.)

I would recommend running your XML through validator and fixing any issues that are found.

+2
source

Source: https://habr.com/ru/post/1769670/


All Articles