Apache JMeter
2.1.1

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 org.w3c.dom.Document makeDocument(InputStream stream, boolean validate, boolean whitespace, boolean namespace, boolean tolerant)
          Utility function to get new Document
static javax.xml.parsers.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 javax.xml.parsers.DocumentBuilder makeDocumentBuilder(boolean validate,
                                                                    boolean whitespace,
                                                                    boolean namespace)
                                                             throws javax.xml.parsers.ParserConfigurationException,
                                                                    org.xml.sax.SAXException
Create a DocumentBuilder using the makeDocumentFactory func.

Parameters:
validate -
whitespace -
namespace -
Returns:
document builder
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

makeDocument

public static org.w3c.dom.Document makeDocument(InputStream stream,
                                                boolean validate,
                                                boolean whitespace,
                                                boolean namespace,
                                                boolean tolerant)
                                         throws javax.xml.parsers.ParserConfigurationException,
                                                org.xml.sax.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:
javax.xml.parsers.ParserConfigurationException
IOException
org.xml.sax.SAXException

Apache JMeter
2.1.1

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