I am serializing a class I have and do not want any attributes in the root.
Here is what I have so far.
[System.Xml.Serialization.XmlRootAttribute("configu ration", Namespace="",
IsNullable=false )]
public class ShoppingList
{
....
}
which yields this
<?xml version="1.0" encoding="utf-8" ?>
- <configuration xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
How do I get rid of the "xmlns:xsd" and the "xmlns:xsi". Also, I would like
to get rid of the "<?xml version..." at the top as well.
Thanks
Amy.