Creating a part of XML document as a string

I get a set of 'Attributes' with default values and I want to create a string which is a part xml document as below(not a complete xml document). I want to have a 'tab' in between every attribute. I've found string concatenation is the workable option in this case. In .Net is there any better way of doing this?\[code\]<XmlNodes><ChildNode Attribute1 ="100" Attribute2="200" Attribute3 ="0"/><ChildNode Attribute1="100" Attribute2="200" Attribute3 ="0"/>...</XmlNodes>\[/code\]
 
Back
Top