XMLException

From Xojo Documentation

Class (inherits from RuntimeException)

This exception occurs for a variety of reasons, such as errors in parsing XML. See the Message and ErrorNumber properties of the RuntimeException class for information about the error.

Properties
CallStack Message Stack
ErrorNumber Node
Line Stack
Methods
CallStack Stack

Sample Code

This example prompts the user to choose an XML file to load catches an exception when an invalid XML file is selected:

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

See Also

RuntimeException class.