XMLDocument.Constructor()

From Xojo Documentation

Constructor
XMLDocument.Constructor()

Creates an empty XMLDocument instance.

Example

This example prompts the user to choose an XML file to load:

Dim xmlFile As FolderItem
xmlFile = GetOpenFolderItem("")

If xmlFile <> Nil Then
Dim xml As New XmlDocument

Try
xml.LoadXml(xmlFile)
Catch e As XmlException
MsgBox("XML error: " + e.Message)
End Try
End If