Exemplo n.º 1
0
 /// <summary>
 /// Apply an XPath to a nodeset
 /// </summary>
 /// <param name="xpathSpec">The XPath to apply</param>
 /// <param name="doc">The nodeset context</param>
 /// <returns>A list of selected nodes</returns>
 public virtual NodeList applyTo(System.String xpathSpec, IList nodeSet)
 {
     //RuntimeSingleton.info("XPathTool::applyTo(String, List)");
     return(new NodeList(XPathCache.getXPath(xpathSpec).applyTo(nodeSet), false));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Apply an XPath to a JDOM Element
 /// </summary>
 /// <param name="xpathSpec">The XPath to apply</param>
 /// <param name="doc">The Element context</param>
 /// <returns>A list of selected nodes</returns>
 public virtual NodeList applyTo(System.String xpathSpec, XmlElement elem)
 {
     //RuntimeSingleton.info("XPathTool::applyTo(String, Element)");
     return(new NodeList(XPathCache.getXPath(xpathSpec).applyTo(elem), false));
 }