.NET and XML
.NET and XML Contents
Summary How to use Indentation in XmlTextWriter?
The property Indentation is used to indent the chars for each child element. You should set this property if you feel unconfortable with the default value of 2. Formatting and indentation are two ways which makes it easier to read the XML elements for example in notepad. The following code illustrates how you can use this property.
Note: You have to set the Formatting property to Formatting.Indented to make usage of the Indentation property, otherwise it won't work.
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