1 30 31 package com.caucho.eswrap.org.w3c.dom; 32 33 import com.caucho.xpath.XPath; 34 import com.caucho.xpath.XPathException; 35 36 import org.w3c.dom.Node ; 37 38 import java.util.Iterator ; 39 40 public class NodeEcmaWrap { 41 public static Node find(Node node, String pattern) 42 throws XPathException 43 { 44 return XPath.find(pattern, node); 45 } 46 47 public static Iterator select(Node node, String pattern) 48 throws XPathException 49 { 50 return XPath.select(pattern, node); 51 } 52 53 public static Object evalObject(Node node, String pattern) 54 throws XPathException 55 { 56 return XPath.evalObject(pattern, node); 57 } 58 59 public static double evalNumber(Node node, String pattern) 60 throws XPathException 61 { 62 return XPath.evalNumber(pattern, node); 63 } 64 65 public static String evalString(Node node, String pattern) 66 throws XPathException 67 { 68 return XPath.evalString(pattern, node); 69 } 70 } 71 | Popular Tags |