Package opennlp.tools.util
Class XmlUtil
- java.lang.Object
-
- opennlp.tools.util.XmlUtil
-
public class XmlUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XmlUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.xml.parsers.DocumentBuilder
createDocumentBuilder()
Create a new DocumentBuilder which processes XML securely.static javax.xml.parsers.SAXParser
createSaxParser()
Create a new SAXParser which processes XML securely.
-
-
-
Method Detail
-
createDocumentBuilder
public static javax.xml.parsers.DocumentBuilder createDocumentBuilder()
Create a new DocumentBuilder which processes XML securely.- Returns:
- a DocumentBuilder
-
createSaxParser
public static javax.xml.parsers.SAXParser createSaxParser()
Create a new SAXParser which processes XML securely.- Returns:
- a SAXParser
-
-