Package org.testng.xml
Class XMLParser<T>
java.lang.Object
org.testng.xml.XMLParser<T>
- All Implemented Interfaces:
IFileParser<T>
- Direct Known Subclasses:
SuiteXmlParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static SAXParserFactoryTries to load aSAXParserFactoryviaSAXParserFactory.newInstance().voidparse(InputStream is, DefaultHandler dh) private static booleanTests if the currentSAXParserFactorysupports DTD validation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.testng.xml.IFileParser
parse
-
Field Details
-
m_saxParser
-
-
Constructor Details
-
XMLParser
public XMLParser()
-
-
Method Details
-
parse
- Throws:
SAXExceptionIOException
-
loadSAXParserFactory
Tries to load aSAXParserFactoryviaSAXParserFactory.newInstance().- Returns:
- a
SAXParserFactoryimplementation - Throws:
TestNGException- thrown if noSAXParserFactorycan be loaded
-
supportsValidation
Tests if the currentSAXParserFactorysupports DTD validation.
-