XMLDocument.Constructor(f as FolderItem)

From Xojo Documentation

Constructor
XMLDocument.Constructor(f as FolderItem)

Parses the passed XML file into the document.

Example

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

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

If xmlFile <> Nil Then
Try
Var xml As New XmlDocument(xmlFile)
Catch e As XmlException
MessageBox("XML error: " + e.Message)
End Try
End If