[xsd-users] Issue with maintaining order

Boris Kolpackov boris at codesynthesis.com
Thu Feb 19 09:18:01 EST 2015


Hi Albert,

Babinskas, Albert <albert.babinskas at imagingsciences.com> writes:

> But the order is not preserved.

In 4.0.0 we've added a feature specifically for that. Check Section 2.8.4,
"Element Order" in the C++/Tree Mapping User Manual:

http://codesynthesis.com/projects/xsd/documentation/cxx/tree/manual/#2.8.4


> Is there a way after XML is parsed into XSD objects, to access DOM
> structure of that Object? For example if I would be able to access
> annotationList Document, or have an iterator over the annotationList.

Yes, you can use the DOM association feature. But the above approach
is easier to use and it works for both parsing and serialization while
the DOM association will only work for parsing.

Boris



More information about the xsd-users mailing list