I need to use an NSXMLParserXML file to parse, but I need to check it against DTD. What is the best practice? Thank.
NSXMLParser
Convert the DTD to an XML Schema, then generate code that provides validation. See this and then this question.
Edit: Added DTD-to-XSD link.