loadFromURI


String loadFromURI (String xpointer, String uri)

Loads the xml document in the matching element from the URI.

 xpointer The xml document/fragment will be loaded in the first matching element for xpointer.
 uri The uri where the xml document/fragment should be loaded from.

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 from the URI.

var root = "#xpointer(/)";
var uri = "/directory/file.xml";
diputree.loadFromURI (root, uri);

Example

loadFromURI example


diputree documentation © 2000 dipu