Hi
I want to go from this :
<detail>
<BusinessError>
<environment>Test</environment>
<businesserror>
<BusinessCode>my_businesscode</BusinessCode>
<BusinessMessage>my_businessmessage</BusinessMessage>
</businesserror>
</BusinessError>
</detail>
To this (only the businesserror element is of interest)
<detail>
<v1:BusinessError xmlns:v1="ddd">
<v1:environment>Test</v1:environment>
<v1:businesserror xsi:type="ns2:AppErrorType" xmlns:ns2="aaaaa" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns2:BusinessCode>my_businesscode</ns2:BusinessCode>
<ns2:BusinessMessage>my_businessmessage</ns2:BusinessMessage>
</v1:businesserror>
</v1:BusinessError>
</detail>
Important detail (I think) the namespace uri's are imported as a variable !
I can add the xsi:type via xs:attribute and the xsi namespace is added automatically but not the namespace (xmlns:ns2="aaaaa") ? notice that the namespace of the containing element (businesserror) is different (ddd) from the one I try to declare (aaaa)
thanks