Instances of this class should not be created directly but through the {@link IdFactory}. Using this factory ensures that the document is made of {@link IdElement} instances which update thelook-up table when the element attribute list is updated.
The method {@link #getElementById} allows looking up an elementin the document given the value of its ID attribute. Instead of scanning the whole document when searching for an element, IdDocument
uses a lookup table for fast direct access to the elements. Hence, applications using this method should see their performances improved compared to walking the document tree.
|
|