开发者

NSXMLParser and validation against a DTD on iOS

开发者 https://www.devze.com 2023-02-16 04:49 出处:网络
I have to use NSXMLParser to parse a XML file, b开发者_Python百科ut I need to validate it against a DTD. What is the best practice? Thank you.Convert your DTD to an XML Schema then generate code which

I have to use NSXMLParser to parse a XML file, b开发者_Python百科ut I need to validate it against a DTD. What is the best practice? Thank you.


Convert your DTD to an XML Schema then generate code which enforces the validation. See this and then this question.

Edit: Added DTD-to-XSD link.

0

精彩评论

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