G
Guest
Hi!
in my Application i have the need to get an XML Declaration without the
Encoding Tag.
Actual i get this declaration: <?xml version="1.0" encoding="utf-8"?>
I need this: <?xml version="1.0"?>
Im using the following Code to produce the XML File:
XmlSerializer XmlS = new XmlSerializer( typeof( AccessRequest ) );
XmlSerializerNamespaces ns = new XmlSerializerNamespaces();
ns.Add("","");
TextWriter TWriter = new StreamWriter( Server.MapPath("list.xml") );
XmlS.Serialize( TWriter, AccReq, ns);
TWriter.Close();
Please help me with this ... i'm going crazy
in my Application i have the need to get an XML Declaration without the
Encoding Tag.
Actual i get this declaration: <?xml version="1.0" encoding="utf-8"?>
I need this: <?xml version="1.0"?>
Im using the following Code to produce the XML File:
XmlSerializer XmlS = new XmlSerializer( typeof( AccessRequest ) );
XmlSerializerNamespaces ns = new XmlSerializerNamespaces();
ns.Add("","");
TextWriter TWriter = new StreamWriter( Server.MapPath("list.xml") );
XmlS.Serialize( TWriter, AccReq, ns);
TWriter.Close();
Please help me with this ... i'm going crazy