[Qt-interest] Validating a DOMTree?

Eirik Ulvik eiriku at simsurgery.com
Thu Apr 29 14:12:41 CEST 2010


QtXMLPatterns module has just what you want,
http://doc.trolltech.com/4.6/qtxmlpatterns.html.

Regards,
Eirik

Den 29.04.2010 14:10, skrev B.W.H. van Beest:
> Suppose I have an XML file, structured according a certain scheme.
> Then I read this file into a QDomElement, thus creating a DOM tree.
> Next I want to modify the DOMTree, by adding/removing elements etc.
> However, I want to allow only actions that are mandated by the
> underlying schema.
> In other words, how can I validate a DOM object tree against a certain
> schema.
> Any suggestion how that can be done are welcome.
> 
> Regards,
> Bertwim
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100429/6bf91e08/attachment.bin 


More information about the Qt-interest-old mailing list