X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;ds=sidebyside;f=doc%2Fwebdeveloper%2Fcommon%2Fxpath.js;fp=doc%2Fwebdeveloper%2Fcommon%2Fxpath.js;h=0000000000000000000000000000000000000000;hb=eb7467621891b71883916c90f91bddf4c38d615f;hp=0b515e3c2bab1089277cf36c5e22efae7af2eb6b;hpb=de6efc861c1f471125cb4d3ab3d0f82572b3d21b;p=pompage.git diff --git a/doc/webdeveloper/common/xpath.js b/doc/webdeveloper/common/xpath.js deleted file mode 100644 index 0b515e3..0000000 --- a/doc/webdeveloper/common/xpath.js +++ /dev/null @@ -1,26 +0,0 @@ -// Evaluates an XPath against a given node -function webdeveloper_evaluateXPath(node, xPath) -{ - var result = null; - var resultList = new Array(); - var xPathEvaluator = new XPathEvaluator(); - var results = null; - - // If the node has an owner document - if(node.ownerDocument) - { - results = xPathEvaluator.evaluate(xPath, node, xPathEvaluator.createNSResolver(node.ownerDocument.documentElement), 0, null); - } - else - { - results = xPathEvaluator.evaluate(xPath, node, xPathEvaluator.createNSResolver(node.documentElement), 0, null); - } - - // Loop through the results - while((result = results.iterateNext()) != null) - { - resultList.push(result); - } - - return resultList; -} \ No newline at end of file