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 SAXParserFactory
Tries to load aSAXParserFactory
viaSAXParserFactory.newInstance()
.void
parse
(InputStream is, DefaultHandler dh) private static boolean
Tests if the currentSAXParserFactory
supports DTD validation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.xml.IFileParser
parse
-
Field Details
-
m_saxParser
-
-
Constructor Details
-
XMLParser
public XMLParser()
-
-
Method Details
-
parse
- Throws:
SAXException
IOException
-
loadSAXParserFactory
Tries to load aSAXParserFactory
viaSAXParserFactory.newInstance()
.- Returns:
- a
SAXParserFactory
implementation - Throws:
TestNGException
- thrown if noSAXParserFactory
can be loaded
-
supportsValidation
Tests if the currentSAXParserFactory
supports DTD validation.
-