String lookup (String contextXPointer, String
relativeXPointer)
Returns the xpointer of the matching element or the empty string if no match was found.
contextXPointer |
The first matching element for contextXPointer
will be used as the context. The context is the point from where the relativeXPointer
will start.Note: Use "# /1" for document element. |
relativeXPointer |
The first matching element for relativeXPointer
will be returned |
Look up the third branch at the root level.
var docElement = "#/1";
var newElement = "#xpointer(has/b[3])";
var thirdBranch = diputree.lookup (docElement, newElement, at);