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 but are not children of that element. They exist on a separate axis, accessed through . An attribute's points to its owning element. Unlike element and document nodes, an attribute's is simply its — no tree traversal is needed. Namespace declaration attributes (xmlns:*) are not represented as XdmAttribute nodes. They are stored as entries in .
#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 . |
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). |