|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jmeter.util.XPathUtil
public class XPathUtil
This class provides a few utility methods for dealing with XML/XPath.
| Method Summary | |
|---|---|
static org.w3c.dom.Document |
makeDocument(java.io.InputStream stream,
boolean validate,
boolean whitespace,
boolean namespace,
boolean tolerant)
Utility function to get new Document |
static org.w3c.dom.Document |
makeDocument(java.io.InputStream stream,
boolean validate,
boolean whitespace,
boolean namespace,
boolean tolerant,
boolean quiet,
boolean showWarnings,
boolean report_errors)
Utility function to get new Document |
static org.w3c.dom.Document |
makeDocument(java.io.InputStream stream,
boolean validate,
boolean whitespace,
boolean namespace,
boolean tolerant,
boolean quiet,
boolean showWarnings,
boolean report_errors,
boolean isXml)
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. |
static Tidy |
makeTidyParser(boolean quiet,
boolean showWarnings,
boolean isXml,
java.io.StringWriter stringWriter)
Create a Tidy parser with the specified settings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static javax.xml.parsers.DocumentBuilder makeDocumentBuilder(boolean validate,
boolean whitespace,
boolean namespace)
throws javax.xml.parsers.ParserConfigurationException
validate - should the parser validate documents?whitespace - should the parser eliminate whitespace in element content?namespace - should the parser be namespace aware?
javax.xml.parsers.ParserConfigurationException
public static org.w3c.dom.Document makeDocument(java.io.InputStream stream,
boolean validate,
boolean whitespace,
boolean namespace,
boolean tolerant)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException,
TidyException
stream - Document Input streamvalidate - Validate Document (not Tidy)whitespace - Element Whitespace (not Tidy)namespace - Is Namespace aware.tolerant - Is tolerant - i.e. use the Tidy parser
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
TidyException
public static org.w3c.dom.Document makeDocument(java.io.InputStream stream,
boolean validate,
boolean whitespace,
boolean namespace,
boolean tolerant,
boolean quiet,
boolean showWarnings,
boolean report_errors)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException,
TidyException
stream - - Document Input streamvalidate - - Validate Document (not Tidy)whitespace - - Element Whitespace (not Tidy)namespace - - Is Namespace aware. (not Tidy)tolerant - - Is tolerant - i.e. use the Tidy parserquiet - - set Tidy quietshowWarnings - - set Tidy warningsreport_errors - - throw TidyException if Tidy detects an error
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
TidyException
public static org.w3c.dom.Document makeDocument(java.io.InputStream stream,
boolean validate,
boolean whitespace,
boolean namespace,
boolean tolerant,
boolean quiet,
boolean showWarnings,
boolean report_errors,
boolean isXml)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException,
TidyException
stream - - Document Input streamvalidate - - Validate Document (not Tidy)whitespace - - Element Whitespace (not Tidy)namespace - - Is Namespace aware. (not Tidy)tolerant - - Is tolerant - i.e. use the Tidy parserquiet - - set Tidy quietshowWarnings - - set Tidy warningsreport_errors - - throw TidyException if Tidy detects an errorisXml - - is document already XML (Tidy only)
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
TidyException
public static Tidy makeTidyParser(boolean quiet,
boolean showWarnings,
boolean isXml,
java.io.StringWriter stringWriter)
quiet - - set the Tidy quiet flag?showWarnings - - show Tidy warnings?isXml - - treat the content as XML?stringWriter - - if non-null, use this for Tidy errorOutput
|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||