Creating XML Trees
One of the most common XML tasks is constructing an XML tree. This section describes several ways to create them.
Provides an overview of functional construction in LINQ to XML. Functional construction enables you to create all or part of your XML tree in a single statement. This topic also shows how to embed queries when constructing an XML tree.
Shows how to create trees in C#.
Provides a quick introduction to creating trees in Visual Basic by using XML literals. This topic includes links to the Visual Basic documentation of XML literals.
Demonstrates the difference between adding nodes from an existing XML tree (nodes are cloned and then added) and adding nodes with no parent (they are simply attached).
Shows how to parse XML from a variety of sources. LINQ to XML is layered on top of XmlReader, which is used to parse the XML.
Shows how to populate an XML tree by using an XmlWriter.
Shows how to validate an XML tree using XSD.
Describes the valid arguments that can be passed to the constructors and methods that are used to add content to elements and documents.