XMLException

From Xojo Documentation
Jump to: navigation, search

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
ErrorNumber Message Stack
Line Node

Example

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.

Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About