Apache JMeter

org.apache.jmeter.util
Class XPathUtil

java.lang.Object
  extended byorg.apache.jmeter.util.XPathUtil

public class XPathUtil
extends Object

author Justin Spears jspears@astrology.com This class provides a few utility methods for dealing with XML/XPath. Might think about creating an interface for the setup, but, works fine now...


Method Summary
static Document makeDocument(InputStream stream, boolean validate, boolean whitespace, boolean namespace, boolean tolerant)
          Utility function to get new Document
static DocumentBuilder makeDocumentBuilder(boolean validate, boolean whitespace, boolean namespace)
          Create a DocumentBuilder using the makeDocumentFactory func.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeDocumentBuilder

public static DocumentBuilder makeDocumentBuilder(boolean validate,
                                                  boolean whitespace,
                                                  boolean namespace)
                                           throws ParserConfigurationException,
                                                  SAXException
Create a DocumentBuilder using the makeDocumentFactory func.

Parameters:
validate -
whitespace -
namespace -
Returns:
document builder
Throws:
ParserConfigurationException
SAXException

makeDocument

public static Document makeDocument(InputStream stream,
                                    boolean validate,
                                    boolean whitespace,
                                    boolean namespace,
                                    boolean tolerant)
                             throws ParserConfigurationException,
                                    SAXException,
                                    IOException
Utility function to get new Document

Parameters:
stream - Document Input stream
validate - Validate Document
whitespace - Element Whitespace
namespace - Is Namespace aware.
tolerant - Is tolerant
Returns:
document
Throws:
ParserConfigurationException
IOException
SAXException

Apache JMeter

Copyright © 1998-2007 Apache Software Foundation. All Rights Reserved.