.NET and XML
.NET and XML Contents
Summary How to write raw XML with XmlTextWriter?
In some cases, you will need to add raw data to the XML file without doing any conversion. For that purpose you can use the WriteRaw() function. This function accepts a string which is the raw string to be added. The following example illustrates how you can make use of that function.
As you can see this function does not format the XML elements although we have set the xmlWriter.Formatting to Formatting.Indented. If you need any formatting here, then you don't have any other choice than doing it manually with \n and blank spaces.
Partners
Dream.In.Code dotNet Slackers dotNet Spider Your HTML Source VisualBuilder.com DevGuru Planet Source Code ZVON.ORG Web Design ASPAlliance XML Pitstop Scripts
The Spot 4 SAP Bitshop Web Hosting