Package org.docx4j.org.apache.poi.util
Class XMLHelper
java.lang.Object
org.docx4j.org.apache.poi.util.XMLHelper
Helper methods for working with javax.xml classes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentBuilderFactoryCreates a new DocumentBuilderFactory, with sensible defaultsstatic SAXParserFactorystatic SchemaFactorystatic TransformerFactorystatic DocumentBuilderCreates a new document builder, with sensible defaultsstatic Transformerstatic XMLEventFactoryCreates a new StAX XMLEventFactory, with sensible defaultsstatic XMLInputFactoryCreates a new StAX XMLInputFactory, with sensible defaultsstatic XMLOutputFactoryCreates a new StAX XMLOutputFactory, with sensible defaultsstatic XMLReaderCreates a new SAX XMLReader, with sensible defaults
-
Method Details
-
getDocumentBuilderFactory
Creates a new DocumentBuilderFactory, with sensible defaults -
newDocumentBuilder
Creates a new document builder, with sensible defaults- Throws:
IllegalStateException- If creating the DocumentBuilder fails, e.g. due toParserConfigurationException.
-
getSaxParserFactory
-
newXMLReader
Creates a new SAX XMLReader, with sensible defaults -
newXMLInputFactory
Creates a new StAX XMLInputFactory, with sensible defaults -
newXMLOutputFactory
Creates a new StAX XMLOutputFactory, with sensible defaults -
newXMLEventFactory
Creates a new StAX XMLEventFactory, with sensible defaults -
getTransformerFactory
-
newTransformer
-
getSchemaFactory
-