Platforms to show: All Mac Windows Linux Cross-Platform

XMLDOMParserMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class XML MBS XML Plugin 23.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: The class to customize the parser and run it.

Dim xml As String = "<test id=""123"">abc</test>"
Dim parser As New XMLDOMParserMBS

Parser.ExitOnFirstFatalError = True
parser.DoNamespaces = True
parser.DoSchema = true

// parse it
Dim doc As XMLDocumentMBS = Parser.Parse(xml)
// and make a string:
Dim s As String = doc.toString

This class wraps XercesDOMParser.

This class implements the Document Object Model (DOM) interface. It should be used by applications which choose to parse and process the XML document using the DOM api's. This implementation also allows the applications to install an error and an entity handler (useful extensions to the DOM specification).

It can be used to instantiate a validating or non-validating parser, by setting a member flag.


Constant Value Description
ValidateAlways 1 The parser will always report validation errors.
ValidateAuto 2 The parser will report validation errors only if a grammar is specified.
ValidateNever 0 Do not report validation errors.

This class has no sub classes.

Blog Entries

Xojo Developer Magazine

The items on this page are in the following plugins: MBS XML Plugin.

XMLDocumentTypeMBS   -   XMLElementMBS

💬 Ask a question or report a problem
The biggest plugin in space...