Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt C++ XML, validating against a DTD?

Tags:

c++

xml

qt

dtd

qtxml

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!

like image 694
Joseph Avatar asked Mar 22 '10 19:03

Joseph


1 Answers

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 !

like image 111
Andy M Avatar answered Oct 23 '22 22:10

Andy M