void load (String xpointer, String xml)
Loads the xml document in the matching element.
xpointer |
The xml
document/fragment will be loaded in the first matching element for xpointer . |
xml |
The xml
document/fragment to load. |
The original element is replaced by the document element of the xml document or the first element of the xml fragment.
Load a tree with one branch and one leaf.
var root = "#xpointer(/)";
var tree = "<diputree><has><b><lt>a
branch</lt></b>" +
"<l><lt>a
leaf</lt></l></has></diputree>";
diputree.load (root, tree);