[xsd-users] xsd:any nodes not printed out

Boris Kolpackov boris at codesynthesis.com
Mon Apr 10 05:28:42 EDT 2006


Hi Oliver,

Oliver.Kowalke at infineon.com <Oliver.Kowalke at infineon.com> writes:

> nodes of type xsd:any are not printed out?!

XSD does not support serialization of type-less content (which includes
xsd:any). This feature is rather non-trivial to implement and we haven't
seen much demand for it. You best bet would be to serialize the tree
into a DOM document, then manually copy nodes that correspond to xsd:any
from the source tree (see importNode), and, finally, serialize the document
to XML.

Just a side note: the main idea of tools like XSD is to provide statically-
types representation of your data. If majority or significant chunk of your
data is type-less, then the major benefit from using tools like XSD becomes
the major burden. In this case you most likely will be better off using type-
less APIs such as DOM.


hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060410/c54dbfa7/attachment.pgp


More information about the xsd-users mailing list