views:

10

answers:

0

I want to serialize datacontract classes into XMl, but without the Namespaces.

I've added:

[DataContract(Namespace="")]

but I still get:

<Person xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
<Title>Mr</Title>
...
</Person>

Is there any way to stop this happening as I just want the clean xml to pass into a legacy component.