com.moesol.util
Class TrAXPath

java.lang.Object
  extended by 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


Constructor Summary
TrAXPath(String xpath)
           
TrAXPath(String xpath, Map ns)
           
 
Method Summary
static void printDom(Node node)
           
static void printDom(NodeList node_list)
           
static void printDom(NodeList node_list, Result result)
           
static void printDom(Node node, Result result)
           
 NodeList selectNodeList(Node context)
           
 NodeList selectNodeList(Source src)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrAXPath

public TrAXPath(String xpath)
         throws TransformerConfigurationException
Throws:
TransformerConfigurationException

TrAXPath

public TrAXPath(String xpath,
                Map ns)
         throws TransformerConfigurationException
Throws:
TransformerConfigurationException
Method Detail

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.