XML Serialization ... how to truncate <?xml...

  • Thread starter Thread starter Raj
  • Start date Start date
R

Raj

While xml serializing object how can I truncate <?xml ...?> this line alone?

I need to send the serialized xml data to a web method ... since SOAP
already have <?xml tag there was some confusion

Any help would be greatly appreciated

Thank you

Regards
Raj
 
Raj said:
While xml serializing object how can I truncate <?xml ...?> this line alone?

Serialize to an XmlWriter created with XmlWriterSettings where you set
OmitXmlDeclaration to true.
 
Back
Top