void setValue (String XPointer, String
value)
Set the value of the matching element.
xpointer |
The value the first matching
element for xpointer will be returned. |
value |
The value to set. |
Set the label text of the first element to "I am the first element!".
var docElem = "#/1";
var xptr = "#xpointer(has/*[1]/lt)";
var element = diputree.lookup(docElem,xptr);
diputree.setValue(element,"I am the first element!");