문제

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!

도움이 되었습니까?

해결책

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 !

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top