You can use the XMLTextWriter class to create XML content that uses a namespace. The code lies used to illustrate the idea are taken from the article How to use XMLTextWriter to create an XML document in VB.NET, and you can find more information about XML namespaces from the article How to use XML Namespaces in XML document.
The …