Platforms to show: All Mac Windows Linux Cross-Platform

XMLAttributeMBS 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
The XMLAttributeMBS class refers to an attribute of an XML element.

Typically the allowable values for the attribute are defined in a documenttype definition.
XMLAttributeMBS objects inherit the XMLNodeMBS interface, but since attributes are not actually child nodes of the elements they are associated with, the DOM does not consider them part of the document tree. Thus, the XMLNodeMBS attributes parentNode, previousSibling, and nextSibling have a null value for XMLAttributeMBS objects. The DOM takes the view that attributes are properties of elements rather than having a separate identity from the elements they are associated with; this should make it more efficient to implement such features as default attributes associated with all elements of a given type. Furthermore, attribute nodes may not be immediate children of a DOMDocumentFragment. However, they can be associated with XMLElementMBS nodes contained within a DOMDocumentFragment. In short, users of the DOM need to be aware that XMLAttributeMBS nodes have some things in common with other objects inheriting the XMLNodeMBS interface, but they also are quite distinct.
Subclass of the XMLNodeMBS class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

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 examples using this class:

Blog Entries

Xojo Developer Magazine


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


XLSheetMBS   -   XMLCDATASectionMBS


The biggest plugin in space...