Platforms to show: All Mac Windows Linux Cross-Platform

Back to XMLParserFilterMBS class.

XMLParserFilterMBS.acceptNode(node as XMLNodeMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
event XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes
This eventn will be called by the parser at the completion of the parsing of each node.

The node and all of its descendants will exist and be complete. The parent node will also exist, although it may be incomplete, i.e. it may have additional children that have not yet been parsed. Attribute nodes are never passed to this function. From within this method, the new node may be freely modified - children may be added or removed, text nodes modified, etc. The state of the rest of the document outside this node is not defined, and the affect of any attempt to navigate to, or to modify any other part of the document is undefined. For validating parsers, the checks are made on the original document, before any modification by the filter. No validity checks are made on any document modifications made by the filter. If this new node is rejected, the parser might reuse the new node and any of its descendants.

node: The newly constructed element. At the time this method is called, the element is complete - it has all of its children (and their children, recursively) and attributes, and is attached as a child to its parent.

Return one of the Filter* constants.

XMLParserFilterMBS.getWhatToShow as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
event XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes
Tells the XMLParserMBS what types of nodes to show to the acceptNode event.

If a node is not shown to the filter using this attribute, it is automatically included in the DOM document being built. See XMLDocumentMBS for definition of the constants.

XMLParserFilterMBS.startElement(node as XMLElementMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
event XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes
The parser will call this method after each XMLElementMBS start tag has been scanned, but before the remainder of the XMLElementMBS is processed.

The intent is to allow the element, including any children, to be efficiently skipped. Note that only element nodes are passed to the startElement function. The element node passed to startElement for filtering will include all of the attributes, but none of the children nodes. The XMLElementMBS may not yet be in place in the document being constructed (it may not have a parent node.) A startElement filter function may access or change the attributes for the XMLElementMBS. Changing namespace declarations will have no effect on namespace resolution by the parser.

node: The newly encountered element. At the time this method is called, the element is incomplete - it will have its attributes, but no children.

Return one of the Filter* constants.

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


The biggest plugin in space...