[xsd-users] Saving Partial XSD trees

Paul McGrath paul.s.mcgrath at gmail.com
Mon Sep 12 08:19:57 EDT 2022


Thanks, I appreciate it. It will take me a while to get through
understanding the suggested examples, but I will get back to you on how it
progresses.

On Sun, Sep 11, 2022 at 7:39 AM Boris Kolpackov <boris at codesynthesis.com>
wrote:

> Paul McGrath <paul.s.mcgrath at gmail.com> writes:
>
> > I'm looking to save sequences without requiring having to save the whole
> > tree. The rationale behind this is to create a library of elements that
> can
> > be then cloned into a tree.
>
> Each XML Schema type is mapped to a C++ class that comes with a
> parsing constructor (from DOMElement) and a serialization operator<<
> (to DOMElement). So with some effort (i.e., create suitable DOMElement,
> etc) you should be able to serialize a sequence of instances of such
> classes.
>
> The closest example to what you are trying to achieve is probably
> cxx/tree/messaging/ (it also comes with DOM parsing/serialization
> helpers which you will most likely find useful). There is also
> cxx/tree/streaming/ that you may find relevant.
>


More information about the xsd-users mailing list