Platforms to show: All Mac Windows Linux Cross-Platform

XMLDocumentMBS class

Super class: XMLNodeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class XML MBS XML Plugin 22.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: The XMLDocumentMBS interface represents the entire XML document.
Example:

// parse it
dim doc as new XMLDocumentMBS("<test id=123>abc</test>")

// and make a string:
dim s as string = doc.toString

Break // see in debugger
Notes:
Conceptually, it is the root of the document tree, and provides the primary access to the document's data.

Since elements, text nodes, comments, processing instructions, etc. cannot exist outside the context of a XMLDocumentMBS, the XMLDocumentMBS interface also contains the factory methods needed to create these objects. The XMLNodeMBS objects created have a ownerDocument attribute which associates them with the XMLDocumentMBS within whose context they were created.

All methods can raise a XMLExceptionMBS object in case of a problem.
Subclass of the XMLNodeMBS class.

Show Values

Constant Value Description
ShowAll &hFFFF Show all XMLNodeMBS(s).
ShowAttribute 2 Show XMLAttributeMBS nodes. This is meaningful only when creating an XMLNodeIteratorMBS or XMLTreeWalkerMBS with an attribute node as its root; in this case, it means that the attribute node will appear in the first position of the iteration or traversal. Since attributes are never children of other nodes, they do not appear when traversing over the document tree.
ShowCDataSection 8 Show XMLCDATASectionMBS nodes.
ShowComment &h80 Show DOMComment nodes.
ShowDocument &h100 Show XMLDocumentMBS nodes.
ShowDocumentFragment &h400 Show XMLDocumentFragmentMBS nodes.
ShowDocumentType &h200 Show XMLDocumentTypeMBS nodes.
ShowElement 1 Show XMLElementMBS nodes.
ShowEntity &h20 Show XMLEntityMBS nodes. This is meaningful only when creating an XMLNodeIteratorMBS or XMLTreeWalkerMBS with an XMLEntityMBS node as its root; in this case, it means that the XMLEntityMBS node will appear in the first position of the traversal. Since entities are not part of the document tree, they do not appear when traversing over the document tree.
ShowEntityReference &h10 Show XMLEntityReferenceMBS nodes.
ShowNotation &h800 Show XMLNotationMBS nodes. This is meaningful only when creating an XMLNodeIteratorMBS or XMLTreeWalkerMBS with a XMLNotationMBS node as its root; in this case, it means that the XMLNotationMBS node will appear in the first position of the traversal. Since notations are not part of the document tree, they do not appear when traversing over the document tree.
ShowProcessingInstruction &h40 Show XMLProcessingInstructionMBS nodes.
ShowText 4 Show XMLTextMBS nodes.

Super class XMLNodeMBS

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.

Types

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

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Blog Entries


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


XMLDocumentFragmentMBS   -   XMLDocumentTypeMBS

Feedback: Report problem or ask question.

The biggest plugin in space...


Start Chat