Hi C开发者_运维问答an anybody tell me how to validate an XML file in c using DTD. I found answers in JAVA but I need the code in C.
You could use libxml2, which can optionally validate against a DTD. It also provides several ways of working with XML data. On Linux, it's usually already installed, with development packages available through your package manager -- though the library is not Linux-specific.
If you are using C++, Xerces is a very good library. Powerful, easy to use. http://xerces.apache.org/xerces-c/
精彩评论