Hi, I always get this exception,
org.apache.commons.jxpath.JXPathException: Cannot find an element by ID - no IdentityManager has been specified
when i try (or similar)
JXPathContext context = JXPathContext.newContext( doc );
context.getPointerByID("1");
where doc is a org.w3c.dom.Document.
The api of JXPath says that i have to set an IdentityManager, but the Api of the IdentityManager says:
A delegate of JXPathContext that implements the XPath "id()" function. This delegate is only used when there is no default implementation of the id() function. For example, it is not used when the root of the context is a DOM Node.
So what do I have to do to enable this default function??
Thanks a lot in advance.
Greetings Michael