Serializing XML DOM Portions with Xerces C ++

I struggle very much with Xerces C ++ and my unfamiliarity with all that XML is, but I need to use XML for the project I'm working on.

My question is how do I serialize parts of the DOM tree that I have already analyzed and created from an XML instance document (validated against the schema I wrote) so that I can create many new document instances (still containing the root element of the original document) so that they remain valid in relation to my scheme?

To be more specific, I have a large instance document with thousands of sets contained in a single root element, which I need to be separately placed in separate files for further processing. Basically a large set of sets, each of which should be placed in separate files and still be checked separately.

I lost the whole process of how to do this. I'm not lucky to find examples that serialize parts of the DOM tree, and I find many terms related to XML-related documentation less useful.

+3
source share
1 answer

Does this article help (section: Validating an XML Schema Using Serialization of Grammars to Disk)?

MemBufFormat .

+3

Source: https://habr.com/ru/post/1706611/


All Articles