c++xmlqtdtdqtxml

Qt C++ XML, validating against a DTD?


Is there a way to validate an XML file against a DTD with Qt's XML handling? I've tried googling around but can't seem to get a straight answer. If Qt doesn't include support for validating an XML file, what might be the process of implementing validation myself? Any good reference to start with in regards to validating XML against a spec? Thanks for the help!


Solution

  • You can validate your XML with this : http://qt.nokia.com/doc/4.6/qxmlschema.html

    You can also find an example here : XML Schema Validation Example

    Hope it helps a bit !