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:

Var xmlFile As FolderItem
xmlFile = FolderItem.ShowOpenFileDialog("")

If xmlFile <> Nil Then
Var xml As New XmlDocument

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