Platforms to show: All Mac Windows Linux Cross-Platform

XMLEntityMBS 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
This interface represents an entity, either parsed or unparsed, in an XML document.

Note that this models the entity itself not the entity declaration. XMLEntityMBS declaration modeling has been left for a later Level of the DOM specification.
The nodeName attribute that is inherited from XMLNodeMBS contains the name of the entity.
An XML processor may choose to completely expand entities before the structure model is passed to the DOM; in this case there will be no XMLEntityReferenceMBS nodes in the document tree.
XML does not mandate that a non-validating XML processor read and process entity declarations made in the external subset or declared in external parameter entities. This means that parsed entities declared in the external subset need not be expanded by some classes of applications, and that the replacement value of the entity may not be available. When the replacement value is available, the corresponding XMLEntityMBS node's child list represents the structure of that replacement text. Otherwise, the child list is empty.
The DOM Level 2 does not support editing XMLEntityMBS nodes; if a user wants to make changes to the contents of an XMLEntityMBS, every related XMLEntityReferenceMBS node has to be replaced in the structure model by a clone of the XMLEntityMBS's contents, and then the desired changes must be made to each of those clones instead. XMLEntityMBS nodes and all their descendants are readonly.
An XMLEntityMBS node does not have any parent.If the entity contains an unbound namespace prefix, the namespaceURI of the corresponding node in the XMLEntityMBS node subtree is null. The same is true for XMLEntityReferenceMBS nodes that refer to this entity, when they are created using the createEntityReference method of the XMLDocumentMBS interface. The DOM Level 2 does not support any mechanism to resolve namespace prefixes.
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:


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


XMLElementMBS   -   XMLEntityReferenceMBS


The biggest plugin in space...