public class XMLIdResolver
extends java.lang.Object
getElementByID functionality. So this modules uses some implicit
knowledge on selected Schemas and DTDs to pick the right Element for a given
ID: We know that all @Id attributes in an Element from the XML
Signature namespace are of type ID.| Modifier and Type | Method and Description |
|---|---|
static org.w3c.dom.Element |
getElementById(org.w3c.dom.Document doc,
java.lang.String id)
Method getElementById
|
static int |
isElement(org.w3c.dom.Element el,
java.lang.String id,
org.w3c.dom.Element[] els) |
static void |
registerElementById(org.w3c.dom.Element element,
org.w3c.dom.Attr id)
Method registerElementById
|
static void |
registerElementById(org.w3c.dom.Element element,
java.lang.String idValue)
Method registerElementById
|
public static void registerElementById(org.w3c.dom.Element element,
java.lang.String idValue)
element - the element to registeridValue - the value of the ID attributepublic static void registerElementById(org.w3c.dom.Element element,
org.w3c.dom.Attr id)
element - the element to registerid - the ID attributepublic static org.w3c.dom.Element getElementById(org.w3c.dom.Document doc,
java.lang.String id)
doc - the documentid - the value of the IDpublic static int isElement(org.w3c.dom.Element el,
java.lang.String id,
org.w3c.dom.Element[] els)