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 |
Notes:
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.
- 20 properties
- property AttributeCount as Integer
- property BaseURI as String
- property ChildCount as Integer
- property FirstChild as XMLNodeMBS
- property Handle as Integer
- property hasAttributes as Boolean
- property hasChildren as Boolean
- property LastChild as XMLNodeMBS
- property LocalName as String
- property NamespaceURI as String
- property NextSibling as XMLNodeMBS
- property NodeName as String
- property NodeType as Integer
- property NodeValue as String
- property OwnerDocument as XMLDocumentMBS
- property ParentNode as XMLNodeMBS
- property Prefix as String
- property PreviousSibling as XMLNodeMBS
- property ReferenceCount as Integer
- property toString as String
- 19 methods
- method appendChild(newChild as XMLNodeMBS) as XMLNodeMBS
- method AttributeNode(Index as Integer) as XMLAttributeMBS
- method AttributeNodes as XMLAttributeMBS()
- method Child(Index as Integer) as XMLNodeMBS
- method ChildNodes as XMLNodeMBS()
- method Clone(deep as Boolean) as XMLNodeMBS
- method compareDocumentPosition(other as XMLNodeMBS) as Integer
- method Constructor Private
- method insertBefore(newChild as XMLNodeMBS, refChild as XMLNodeMBS) as XMLNodeMBS
- method isDefaultNamespace(namespaceURI as String) as Boolean
- method isEqualNode(other as XMLNodeMBS) as Boolean
- method isSameNode(other as XMLNodeMBS) as Boolean
- method IterateAttributeNodes as XMLIterateAttributeNodesMBS
- method IterateChildNodes as XMLIterateChildNodesMBS
- method lookupNamespaceURI(prefix as String) as String
- method lookupPrefix(namespaceURI as String) as String
- method Normalize
- method removeChild(Node as XMLNodeMBS)
- method replaceChild(newChild as XMLNodeMBS, oldChild as XMLNodeMBS) as XMLNodeMBS
- 18 constants
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 |
Sub classes:
- class XMLAttributeMBS
- class XMLCharacterDataMBS
- class XMLDocumentFragmentMBS
- class XMLDocumentMBS
- class XMLDocumentTypeMBS
- class XMLElementMBS
- class XMLEntityMBS
- class XMLEntityReferenceMBS
- class XMLNotationMBS
- class XMLProcessingInstructionMBS
Some methods using this class:
- XMLDocumentMBS.createNodeIterator(root as XMLNodeMBS = nil, whatToShow as Integer = &hFFFF, entityReferenceExpansion as boolean = false, filter as XMLNodeFilterMBS = nil) as XMLNodeIteratorMBS
- XMLDocumentMBS.createTreeWalker(root as XMLNodeMBS = nil, whatToShow as Integer = &hFFFF, entityReferenceExpansion as boolean = false, filter as XMLNodeFilterMBS = nil) as XMLTreeWalkerMBS
- XMLDocumentMBS.evaluate(expression as String, contextNode as XMLNodeMBS, type as Integer) as XMLXPathResultMBS
- XMLDocumentMBS.importNode(node as XMLNodeMBS) as XMLNodeMBS
- XMLDocumentMBS.NodeFromHandle(Handle as Integer) as XMLNodeMBS
- XMLNodeIteratorMBS.nextNode as XMLNodeMBS
- XMLSerializerMBS.writeToURI(Node as XMLNodeMBS, URI as String) as Boolean
- XMLTreeWalkerMBS.nextNode as XMLNodeMBS
- XMLTreeWalkerMBS.nextSibling as XMLNodeMBS
- XMLTreeWalkerMBS.previousNode as XMLNodeMBS
Some properties using for this class:
- XMLNodeIteratorMBS.Current as XMLNodeMBS
- XMLNodeIteratorMBS.Root as XMLNodeMBS
- XMLNodeMBS.FirstChild as XMLNodeMBS
- XMLNodeMBS.LastChild as XMLNodeMBS
- XMLNodeMBS.NextSibling as XMLNodeMBS
- XMLNodeMBS.ParentNode as XMLNodeMBS
- XMLNodeMBS.PreviousSibling as XMLNodeMBS
- XMLTreeWalkerMBS.CurrentNode as XMLNodeMBS
- XMLTreeWalkerMBS.Root as XMLNodeMBS
- XMLXPathResultMBS.NodeValue as XMLNodeMBS
Some events using this class:
- XMLNodeFilterMBS.acceptNode(node as XMLNodeMBS) as Integer
- XMLParserFilterMBS.acceptNode(node as XMLNodeMBS) as Integer
- XMLSerializerFilterMBS.acceptNode(node as XMLNodeMBS) as Integer
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 23.4pr1
- News from the MBS Xojo Plugins in Version 23.0
- Xojo 2022r4 released
- MBS Xojo Plugins, version 22.6pr1
- MBS Xojo Plugins, version 22.4pr3
Xojo Developer Magazine
The items on this page are in the following plugins: MBS XML Plugin.
XMLNodeIteratorMBS - XMLNotationMBS
