Connecting Tech Pros Worldwide Help | Site Map

XmlSerializer Question

Matt
Guest
 
Posts: n/a
#1: Jun 14 '06
Is is possible to prevent the XmlSerializer from adding the default namespaces to the root of the XML document? I have a simple class that I want to write and will not be reading the data back into the system using a serializer.

Thanks,

Matt


Simon Hart
Guest
 
Posts: n/a
#2: Jun 17 '06

re: XmlSerializer Question


I don't think this is possible. Instead what I have done in the past is removed the namespace manually (string class) as it is a lot of hard work tring to use the NamespaceManager class.

Simon.
"Matt" <mdframe@sorvive.DONT-SEND-SPAM.com> wrote in message news:ONzGls9jGHA.2200@TK2MSFTNGP05.phx.gbl...
Is is possible to prevent the XmlSerializer from adding the default namespaces to the root of the XML document? I have a simple class that I want to write and will not be reading the data back into the system using a serializer.

Thanks,

Matt


Closed Thread


Similar .NET Framework bytes