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
The class to customize the parser and run it.
Example

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

Break

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.

Validation

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

Release notes


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


XMLDocumentTypeMBS   -   XMLElementMBS


The biggest plugin in space...