Platforms to show: All Mac Windows Linux Cross-Platform

XMLParserMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: The XMLParserMBS class provides an API for parsing XML documents and building the corresponding DOM document tree.
Example:

Dim p As New XMLParserMBS
Dim f As FolderItem = SpecialFolder.Desktop.Child("test.xml")

Dim doc As XMLDocumentMBS = p.parseFile(f)

// inspect document in debugger
MessageBox doc.NodeName
Notes: Please note that asynchronous mode is not yet supported in MBS Plugin.

Actions

Constant Value Description
ActionAppendAsChildren 1 Append the result of the parse operation as children of the context node. For this action to work, the context node must be a XMLElementMBS or a XMLDocumentFragmentMBS.
ActionInsertAfter 4 Insert the result of the parse operation as the immediately following sibling of the context node. For this action to work the context node's parent must be a XMLElementMBS or a XMLDocumentFragmentMBS.
ActionInsertBefore 3 Insert the result of the parse operation as the immediately preceding sibling of the context node. For this action to work the context node's parent must be a XMLElementMBS or a XMLDocumentFragmentMBS.
ActionReplace 5 Replace the context node with the result of the parse operation. For this action to work, the context node must have a parent, and the parent must be a XMLElementMBS or a XMLDocumentFragmentMBS.
ActionReplaceChildren 2 Replace all the children of the context node with the result of the parse operation. For this action to work, the context node must be a XMLElementMBS, a XMLDocumentMBS, or a XMLDocumentFragmentMBS.

This class has no sub classes.


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


XMLParserFilterMBS   -   XMLProcessingInstructionMBS

Feedback: Report problem or ask question.

The biggest plugin in space...


Start Chat