I have a CRM entity XML message as follows:
<c:KeyValuePairOfstringanyType xmlns:c="ns1" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" >
....
<c:value i:type="**b:AliasedValue**" **xmlns:b="ns3"**>
SomethingHere...
</c:value>
</c:KeyValuePairOfstringanyType>
Then I deserialized it to an object and serialized back to xml
I get
<c:KeyValuePairOfstringanyType xmlns:c="ns1" xmlns:i="http://www.w3.org/2001/XMLSchema- instance" >
<c:value i:type="b:AliasedValue" >
SomethingHere...
</c:value>
</c:KeyValuePairOfstringanyType>
I loose the xmlns:b definition. Any idea why?