Element and Attribute Nodes

The Element and Attr node types correspond to the Infoset's element and attribute information items, respectively. The [children] and [parent] Infoset properties of the element information item are exposed via the standard Node methods, and no additional functionality is needed to address these properties. The parent of an Attr node is always null, but the associated Element node is available via the Attr.ownerElement attribute. The [children] property of the attribute information item is available via both Node.nodeValue and via the Text and EntityReference children of the Attr node.

The primary extensions that Element provides are to address the [attributes] Infoset property, which is always treated as distinct ...

Get Essential XML: Beyond Markup now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.