Can't find NSXMLDocument class for XML parsing

2019-06-03 10:45发布

问题:

I have been trying to trying to parse an xml file using NSXML parser . In that i want to use NSXMLDocument class for storing data in it's instance. After searching in all possible ways i failed to get clear idea about NSXMLDocument. I didn't import any class especially for that. Do i have to add any classes or lib files ???

回答1:

NSXMLDocument is not availble on iOS. You options are to use either NSXMLParser sax based parsing or a third party library.