| java.lang.Object org.openlaszlo.iv.flash.xml.apache.XPathHelper
XPathHelper | public class XPathHelper (Code) | | XML Helper class for apache implementation
Provides various methods for XML stuff
author: Dmitry Skavish |
Method Summary | |
public static XObject | evalXPath(XPathContext xpathContext, Node node, String expr) Evaluates specified XPath expression in the specified xml node. | public static XObject | evalXPath(XPathContext xpathContext, Node node, XPath xpath) Evaluates specified XPath expression in the specified xml node. | public static String | getNodeData(Node node) Returns String representation of specified xml node. | public static void | getNodeData(Node node, StringBuffer buf) | public static NodeList | getNodeList(XObject xo) Converts result of XPath evaluation to nodelist. | public static synchronized PrefixResolver | getPrefixResolver(Node node) | public static String | getXObjectData(XObject xo) | public static synchronized XPath | getXPath(Node node, String expr) Compiles specified string into XPath. | public static NodeList | selectNodeList(XPathContext xpathContext, Node node, String expr) Evaluates XPath to list of nodes. | public static NodeList | selectNodeList(XPathContext xpathContext, Node node, XPath xpath) Evaluates XPath to list of nodes. | public static Node | selectSingleNode(XPathContext xpathContext, Node node, String expr) Evaluates XPath to one node. | public static Node | selectSingleNode(XPathContext xpathContext, Node node, XPath xpath) Evaluates XPath to one node. |
evalXPath | public static XObject evalXPath(XPathContext xpathContext, Node node, String expr) throws TransformerException(Code) | | Evaluates specified XPath expression in the specified xml node.
Parameters: xpathContext - Parameters: node - xml node to evaluated on Parameters: expr - xpath expression result of xpath execution exception: TransformerException - |
evalXPath | public static XObject evalXPath(XPathContext xpathContext, Node node, XPath xpath) throws TransformerException(Code) | | Evaluates specified XPath expression in the specified xml node.
Parameters: xpathContext - Parameters: node - xml node to evaluated on Parameters: xpath - xpath expression result of xpath execution exception: TransformerException - |
getNodeData | public static String getNodeData(Node node)(Code) | | Returns String representation of specified xml node.
Parameters: node - the specified xml node string representation of the node |
getPrefixResolver | public static synchronized PrefixResolver getPrefixResolver(Node node)(Code) | | |
getXObjectData | public static String getXObjectData(XObject xo)(Code) | | |
getXPath | public static synchronized XPath getXPath(Node node, String expr) throws TransformerException(Code) | | Compiles specified string into XPath.
Tries to retrieve compiled XPath expression from cache,
if it's not in the cache then compiles give string into XPath
and caches in the cache.
Parameters: expr - string representing XPath expression compiled XPath expression exception: TransformerException - |
selectNodeList | public static NodeList selectNodeList(XPathContext xpathContext, Node node, String expr) throws TransformerException(Code) | | Evaluates XPath to list of nodes.
Parameters: xpathContext - Parameters: node - xml node to evaluated on Parameters: expr - XPath expression result of xpath execution - list of nodes exception: TransformerException - |
selectNodeList | public static NodeList selectNodeList(XPathContext xpathContext, Node node, XPath xpath) throws TransformerException(Code) | | Evaluates XPath to list of nodes.
Parameters: xpathContext - Parameters: node - xml node to evaluated on Parameters: xpath - XPath expression result of xpath execution - list of nodes exception: TransformerException - |
selectSingleNode | public static Node selectSingleNode(XPathContext xpathContext, Node node, String expr) throws TransformerException(Code) | | Evaluates XPath to one node.
Parameters: xpathContext - Parameters: node - xml node to be evaluated on Parameters: expr - XPath expression xml node exception: TransformerException - |
selectSingleNode | public static Node selectSingleNode(XPathContext xpathContext, Node node, XPath xpath) throws TransformerException(Code) | | Evaluates XPath to one node.
Parameters: xpathContext - Parameters: node - xml node to be evaluated on Parameters: xpath - XPath expression xml node exception: TransformerException - |
|
|