I have been trying to figure out how to create an XML document. I've found many code examples; but don't see where the file is specified in any of them. Below is the code I have so far and have a file variable (string) but can't seem to fit it in anyplace.
Dim XMLDOC$ = txtSAFE_NAME.Text & ".xml"
' Create XmlWriterSettings.
Dim settings As XmlWriterSettings = New XmlWriterSettings()
settings.Indent = True
Dim sw As New StringWriter()
' Create XmlWriter.
Using writer As XmlWriter = XmlWriter.Create(sw, settings)
writer.WriteStartElement("RUSAFE") ' Root.
' End document.
Dim output As String = sw.ToString()