Named node maps

In some circumstances, a set of nodes that have no particular ordering significance need to be grouped together. This applies to attributes and to entity and notation declarations. Attributes do have a real location, in the sense that they belong to a specific element instance, but their order of appearance within the start-tag is not significant. Likewise, entity declarations have an order in the data stream, but this order is not significant (beyond the fact that only the first occurrence of duplicate declarations is acted upon). While the location is not significant in these instances, the names of these items certainly is significant. Unique names are essential.

The NamedNodeMap interface is designed to contain nodes, in no ...

Get XML Companion, The, Third Edition 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.