Can you provide some information how to use <container> element instead of the <field>
Igor
Keith Visco wrote:
Hi Igor,
This should now work in the latest CVS. I just updated the logic.
In order for field types to use their classes namespace, the field
must be a primitive or a String value and the node type must
be element. This will now be handled automatically.
If you want to force a non primitive field or an attribute to use the
namespace of the
containing field you'll need to do the following:
1. declare the namespace in the mapping file itself...as such:
<class xmlns:abc="my-namespace" ...>
2. use the prefix in your bind-xml name for the field:
<bind-xml name="abc:foo" ....>
--Keith
Igor Katz wrote:Hi,
I'm using latest cvs version. I define ns-uri and ns-prefix for a
<map-to> element.
After marshaling in result xml, ns-prefix added just in root element,
not in nested elements or attributes.
<class name="com.Test">
<map-to xml="test" ns-uri="http://com/schemas/test" ns-perfix="my" />
<field name="name" type=...>
...
the result:
<my:test>
<name>Test<name>
</my:test>
How can add ns-prefix for a nested elements and attributes?
10x
Igor
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
