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:

Dim xmlFile As FolderItem
xmlFile = GetOpenFolderItem("")

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