com.moesol.util
Class TrAXPath
java.lang.Object
com.moesol.util.TrAXPath
public class TrAXPath
- extends Object
Simple wrapper around the TrAX APIs to enable simple XPath access to nodes.
Taken from Enterprise Java Technologies Tech Tips for July 30, 2004
Note that in Java 1.5 this functionality is subsummed by XPath
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrAXPath
public TrAXPath(String xpath)
throws TransformerConfigurationException
- Throws:
TransformerConfigurationException
TrAXPath
public TrAXPath(String xpath,
Map ns)
throws TransformerConfigurationException
- Throws:
TransformerConfigurationException
selectNodeList
public NodeList selectNodeList(Node context)
throws TransformerConfigurationException,
ParserConfigurationException,
TransformerException
- Throws:
TransformerConfigurationException
ParserConfigurationException
TransformerException
selectNodeList
public NodeList selectNodeList(Source src)
throws ParserConfigurationException,
TransformerException
- Throws:
ParserConfigurationException
TransformerException
printDom
public static void printDom(NodeList node_list)
throws TransformerFactoryConfigurationError,
TransformerException
- Throws:
TransformerFactoryConfigurationError
TransformerException
printDom
public static void printDom(Node node)
throws TransformerFactoryConfigurationError,
TransformerException
- Throws:
TransformerFactoryConfigurationError
TransformerException
printDom
public static void printDom(NodeList node_list,
Result result)
throws TransformerFactoryConfigurationError,
TransformerException
- Throws:
TransformerFactoryConfigurationError
TransformerException
printDom
public static void printDom(Node node,
Result result)
throws TransformerFactoryConfigurationError,
TransformerException
- Throws:
TransformerFactoryConfigurationError
TransformerException
Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.