XMLDocument.Constructor()

From Xojo Documentation

Revision as of 22:41, 29 August 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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