Hi,
I have notice some issue about processing namespaces attributes. I am
wondering if it is bugs or if I did something wrong.
1) When I marshall object with a default namespace, I don't understand why
attributes have ns1 prefix set on output. I set setNamespaceMapping("",
"my-namespace") to disable ns1 prefix, but there is no effect.
example :
Input :
<root xmlns="urn:mynamespace">
<element att1="value" att2="value" att3="value" att4="value" />
<root>
Output :
<root xmlns="urn:mynamespace" xmlns:ns1="urn:mynamespace">
<element ns1:att1="value" ns1:att2="value" ns1:att3="value"
ns1:att4="value" />
<root>
2) When Unmarshalling XML which contains attributes which are not map, all
following attributes will not be process.
example for this XML :
<element att1="value" att2="value" att3="value" att4="value" />
If my mapping doesn't mapp att2: att3 and att4 will have no value on
element object !!
This behaviour happens for castor 1.1.2 and 1.2. I made some hack on
Namespaces, Marshaller and UnmarshalHandler to delete prefix on attributes
for default namespace and to process all attributes if one are not map.
Tell me if I did something wrong or if it is bugs. I can make a test case
and open a Jira issue if you wan't.
Regards,
Bertrand
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email