Hello,
I use Xml serialization to serialize an object into an xml file.
My root tag is defined as following:
[System.CodeDom. Compiler.Genera tedCodeAttribut e("xsd",
"2.0.50727. 42")]
[System.Componen tModel.Designer CategoryAttribu te("code")]
[SerializableAtt ribute()]
[XmlType("Style" )]
public class RPStyle
{
//...
}
That will produce following xml:
<?xml version="1.0" encoding="utf-16"?>
<Style xmlns:xsd="http ://www.w3.org/2001/XMLSchema-instance"/>
You see, that there is an attribute xmlns:xsd. How can I get rid of
that xmlns attribute?
Thank you,
Norbert
I use Xml serialization to serialize an object into an xml file.
My root tag is defined as following:
[System.CodeDom. Compiler.Genera tedCodeAttribut e("xsd",
"2.0.50727. 42")]
[System.Componen tModel.Designer CategoryAttribu te("code")]
[SerializableAtt ribute()]
[XmlType("Style" )]
public class RPStyle
{
//...
}
That will produce following xml:
<?xml version="1.0" encoding="utf-16"?>
<Style xmlns:xsd="http ://www.w3.org/2001/XMLSchema-instance"/>
You see, that there is an attribute xmlns:xsd. How can I get rid of
that xmlns attribute?
Thank you,
Norbert
Comment