I am editing csproj files with Linq-to-XML and need to save the XML without the <?XML?>
header.
As XDocument.Save() is missing the necessary option, what's the best way to do this?
I am editing csproj files with Linq-to-XML and need to save the XML without the <?XML?>
header.
As XDocument.Save() is missing the necessary option, what's the best way to do this?
You can do this with
XmlWriterSettings
, and saving the document to anXmlWriter
: