[xsd-users] Re: Binary serialization and any & anyAttribute

Boris Kolpackov boris at codesynthesis.com
Mon Feb 13 09:09:06 EST 2012


Hi,

dv <dv7777 at gmail.com> writes:

> is it possible to binary (de)serialize contents from any and  
> anyAttribute nodes? In other words, (de)serialize Xerces DOM
> nodes?

By default any and anyAttribute data is ignored for binary 
serialization. The only way to add this support is to customize the
types that contain these wildcards and then save the data in some
application-specific fashion (e.g., as a text representation of XML)
during insertion and then restore it (e.g., parse the text back to
an DOM fragment) during extraction.

When customizing the insertion/extraction operators you can first
call the base version so that normal, non-wildcard data can be
saved/loaded and then do custom wildcard data processing.

Boris



More information about the xsd-users mailing list