Thanks, Bertrand. Most likely I will follow up through the Jira issue.

Werner

[EMAIL PROTECTED] wrote:
> Hi Werner,
> 
> You will find test case and patch on jira at this adress :
> http://jira.codehaus.org/browse/CASTOR-2404
> 
> Thank for having a look.
> 
> Bertrand
> 
>> Bertrand,
>>
>> I think opening individual Jira issues is the way to go forward. Yes,
>> attaching fully working test cases would be appreciated. Have a look at
>> either the Maven archetypes or the XML HOW-TO on writing tests. In
>> addition, please try to keep the test cases as minimal as possible to
>> ease our life.
>>
>> Having said that, I cannot confirm whether you've hit by a bug or not.
>> We will have to have a look first.
>>
>> Regards
>> Werner
>>
>> [EMAIL PROTECTED] wrote:
>>> 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
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to