Hi all,
We have added a feature the allows to use the XML type 'QName' in the
Marshalling framework.
You can specify the type QName in your XML Schema and then use the Source
Generator or
in a mapping file in the element <bind-xml>.
A QName (prefix:value) is mapped into memory as '{URI}value'.
For instance given the following mapping element:
<bind-xml name="foo" node="element" type="QName"/>
------------
and the following xml fragment:
<foo xmlns:bar="http://www.castor.org/Tests/QName">bar:value</foo>
the in-memory representation of 'foo' will be
'{http://www.castor.org/Tests/QName}'.
In order not to lose the prefix you can specify it via the mapping file:
<bind-xml name="foo" node="element" type="QName" QName-prefix="bar"/>
------------------
'QName-prefix' is an optional attribute. If it is not present Castor will
calculate
a namespace prefix at run-time (ns1, ns2...).
Just grab the latest CVS version to play with it and let us know if
you have any problem with it.
Have fun ;+)
Arnaud
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev