# XML Document Creation

There are two ways to create an XML document. One way is to create an XmlDocument with no parameters. The other way is to create an XmlDocument and pass it an XmlNameTable as a parameter. The following example shows how to create a new, empty XmlDocument using no parameters.

Dim doc As New XmlDocument()

XmlDocument doc = new XmlDocument();