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 |
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.
- 14 properties
- property CreateEntityReferenceNodes as Boolean
- property DoNamespaces as Boolean
- property DoSchema as Boolean
- property ExitOnFirstFatalError as Boolean
- property ExternalSchemaLocation as String
- property GenerateSyntheticAnnotations as Boolean
- property Handle as Integer
- property IdentityConstraintChecking as Boolean
- property IncludeIgnorableWhitespace as Boolean
- property Threaded as Boolean
- property ValidateAnnotations as Boolean
- property ValidationConstraintFatal as Boolean
- property ValidationSchemaFullChecking as Boolean
- property ValidationScheme as Integer
- 4 methods
- method Constructor
- method Parse(data as MemoryBlock) as XMLDocumentMBS
- method Parse(data as string) as XMLDocumentMBS
- method Reset
- 3 constants
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
- News from the MBS Xojo Plugins in Version 23.0
- MonkeyBread Software Releases the MBS Xojo Plugins in version 23.0
- MBS Xojo Plugins, version 22.6pr1
Xojo Developer Magazine
The items on this page are in the following plugins: MBS XML Plugin.
XMLDocumentTypeMBS - XMLElementMBS
