BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


.NET and XML
What is the usage of WriteFullEndElement and how do I use?
How to include a CData block with XmlTextWriter and WriteCData?
How to write raw XML with XmlTextWriter?
How to add a namespace with the XmlTextWriter and WriteStartAttribute?
How to create a new xml file with XmlDocument?
How to create a xml on the fly?
How to use the Item property in XmlTextReader?
How to Create a Comment with XmlDocument and XmlComment?
How to Read a XML from a Stream with XmlTextReader?
How to Read a XML from a URL with the XmlTextReader?
How to auto-increment an unique ID in XML with XmlTextReader?
How to read Nodes with XmlNodeReader?
How to Get the Attribute Value with XmlNodeReader and GetAttribute?
How to skip child nodes with XmlNodeReader and Skip?
How to convert the return value from XML with XmlConvert and ToInt32?
What is the 'pull model'?
What is EXSLT.NET?
What is ADO.NET?
How to create a ""hello world"" XML WebService in Visual Studio .NET?
Accessing and Manipulating XML Data in Microsoft .NET Framework


 
 

<< XSLT 


By Sonu Kapoor
First Posted 02/20/2005
Times viewed 230

How to use Indentation in XmlTextWriter?


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.

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< XSLT 





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML