Package opennlp.tools.util
Class XmlUtil
java.lang.Object
opennlp.tools.util.XmlUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentBuilder
Create a newDocumentBuilder
which processes XML securely.static SAXParser
Create a newSAXParser
which processes XML securely.
-
Constructor Details
-
XmlUtil
public XmlUtil()
-
-
Method Details
-
createDocumentBuilder
Create a newDocumentBuilder
which processes XML securely.- Returns:
- A valid
DocumentBuilder
instance. - Throws:
IllegalStateException
- Thrown if errors occurred creating the builder.
-
createSaxParser
Create a newSAXParser
which processes XML securely.- Returns:
- A valid
SAXParser
instance. - Throws:
IllegalStateException
- Thrown if errors occurred creating the parser.
-