PhoenixmlDb.Core

XdmAttribute

Represents an XML attribute node in the XDM tree.

#XdmAttribute

Namespace: PhoenixmlDb.Xdm.Nodes

Represents an XML attribute node in the XDM tree.

Attribute nodes are associated with an XdmElement but are not children of that element. They exist on a separate axis, accessed through XdmElement.Attributes. An attribute's XdmNode.Parent points to its owning element.

Unlike element and document nodes, an attribute's XdmNode.StringValue is simply its XdmAttribute.Value — no tree traversal is needed.

Namespace declaration attributes (xmlns:*) are not represented as XdmAttribute nodes. They are stored as NamespaceBinding entries in XdmElement.NamespaceDeclarations.

#Properties

Name Description
IsId Indicates whether this attribute is an ID attribute, as determined by the DTD or by being named xml:id.
IsIdRef Indicates whether this attribute is an IDREF or IDREFS attribute, as determined by the DTD or schema validation.
LocalName The attribute's local name (the part after the colon in a prefixed name, or the entire name for unprefixed attributes).
Namespace The attribute's namespace URI, stored as an interned NamespaceId.
Prefix The namespace prefix used in the original document, preserved for round-trip serialization.
TypeAnnotation The XSD type annotation for this attribute (default: xs:untypedAtomic).
Value The attribute's string value (the text between the quotes in the source XML).