Platforms to show: All Mac Windows Linux Cross-Platform

XMLNodeMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: The XMLNodeMBS interface is the primary datatype for the entire Document Object Model.
It represents a single node in the document tree. While all objects implementing the XMLNodeMBS interface expose methods for dealing with children, not all objects implementing the XMLNodeMBS interface may have children. For example, XMLTextMBS nodes may not have children, and adding children to such nodes results in a XMLExceptionMBS being raised.

The attributes nodeName, nodeValue and attributes are included as a mechanism to get at node information without casting down to the specific derived interface. In cases where there is no obvious mapping of these attributes for a specific nodeType (e.g., nodeValue for an XMLElementMBS or attributes for a XMLCommentMBS), this returns nil. Note that the specialized interfaces may contain additional and more convenient mechanisms to get and set the relevant information.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Document Positions

Constant Value Description
DocumentPositionContainedBy 16 The node is contained by the reference node. A node which is contained is always following, too.
DocumentPositionContains 8 The node contains the reference node. A node which contains is always preceding, too.
DocumentPositionDisconnected 1 The two nodes are disconnected. Order between disconnected nodes is always implementation-specific.
DocumentPositionFollowing 4 The node follows the reference node.
DocumentPositionImplementationSpecific 32 The determination of preceding versus following is implementation-specific.
DocumentPositionPreceding 2 The second node precedes the reference node.


Constant Value Description
TypeAttribute 2 Attribute Node
TypeCDataSection 4 CDataSection Node
TypeComment 8 Comment Node
TypeDocument 9 Document Node
TypeDocumentFragment 11 Document Fragment
TypeDocumentType 10 Document Type Node
TypeElement 1 Element Node
TypeEntity 6 Entity Node
TypeEntityReferenceNode 5 Entity Reference Node
TypeNotation 12 Notation Node
TypeProcessingInstruction 7 Processing Instruction Node
TypeText 3 Text Node

Sub classes:

Some methods using this class:

Some properties using for this class:

Some events using this class:

Blog Entries

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

XMLNodeIteratorMBS   -   XMLNotationMBS

Feedback: Report problem or ask question.

The biggest plugin in space...

Start Chat