Remove xmlns

can anyone give me a tip as to how to remove the xmlns data from the datacontract part of my message. Thanks.

< xml version="1.0" encoding="utf-16" ><Report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Contributions xmlns="http://schemas.datacontract.org/2004/07/">1.23</Contributions><NetContributions xmlns="http://schemas.datacontract.org/2004/07/">2.11</NetContributions><PortfolioValueStart xmlns="http://schemas.datacontract.org/2004/07/">102.21</PortfolioValueStart><ProtfolioValueEnd xmlns="http://schemas.datacontract.org/2004/07/">89.22</ProtfolioValueEnd><TransfersIn xmlns="http://schemas.datacontract.org/2004/07/">98.22</TransfersIn><TransfersOut xmlns="http://schemas.datacontract.org/2004/07/">23.23</TransfersOut><Withdrawls xmlns="http://schemas.datacontract.org/2004/07/">92.45</Withdrawls></Report>




Answer this question

Remove xmlns

  • Moonshadow

    Have the message and Data caried in the message in the same XML namespace.

    You could try not setting a namespace on your data contracts but it always generates one like tempuri.org (XmlSerializer) .

    Regards,

    Ben


  • Remove xmlns