load


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.

Remarks

The original element is replaced by the document element of the xml document or the first element of the xml fragment.

Code snippet

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);

Example

load example


diputree documentation © 2000 dipu