Creating XML in Visual Basic
Visual Basic enables you to use XML literals directly in your code. The XML literal syntax represents LINQ to XML objects, and it is similar to the XML 1.0 syntax. This makes it easier to create XML elements, documents, and fragments programmatically because your code has the same structure as the final XML.
Introduction to XML literals and how they relate to LINQ to XML.
Describes how to use embedded expressions in XML literals.
Describes how to create an XML element in code by using an XML literal.
Describes how Visual Basic treats white space in XML literals.
Describes how the XML literal syntax in Visual Basic relates to the XML 1.0 specification.
Describes how to use embedded expressions in XML literals to create content at run time.
Describes guidelines for naming XML elements and attributes.