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!
+3
A:
Hey,
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 !
Andy M
2010-03-22 20:13:50
So I won't be able to validate with a DTD but with an XML schema? I haven't heard of "XML Schema" before but it looks to do what I need it to do, thanks!
Airjoe
2010-03-22 20:31:25
I've never heard of something related to DTD with Qt... I think you'll have to go with that... But maybe I'm wrong...
Andy M
2010-03-22 20:38:00