You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Davide Capodaglio <da...@axelsw.it> on 2024/08/29 07:56:30 UTC

XSD validation

Good morning,
I would like to know if the FAQ is up-to-date about validation
https://xerces.apache.org/xerces-c/faq-parse-3.html#faq-9
https://xerces.apache.org/xerces-c/faq-parse-3.html#faq-10

I need to use XSD validation to check the XML structure, and to "apply" fixed attributes to it.
This works perfectly upon initial loading of the document, but I need to create new nodes later dynamically, check them and apply fixed attributes to them from XSD.
Re-loading the whole document is not an option (it would destroy existing DOMNode* ...)

Validating only a fragment of the DOM tree would be the right way (like validateNode method of MSXML), but probably re-validating the whole DOM document would be ok anyway.

Thanks

---
Davide Capodaglio

AXEL S.r.l.
Via del Cannino, 3 - 21020 Crosio della Valle (VA), Italy
Tel. +39.0332.949600 - Fax: +39.0332.969315
e-mail: davide.capodaglio@axelsw.it<ma...@axelsw.it>
website: www.axelsw.it<http://www.axelsw.it>