ID attributes are define in DTDs. Hence, the lookup features provided by this package are available only for XML documents associated to a DTD and only for the elements for which the DTD defines an ID attribute.
Please refer to IdFactory for details on how to use IdFactory within an application.
A sample application is provided here, with an example XML file and its DTD.