Class XmlUtil

java.lang.Object
com.itextpdf.io.util.XmlUtil

public final class XmlUtil extends Object
This file is a helper class for internal usage only. Be aware that its API and functionality may be changed in future.
  • Method Details

    • getDocumentBuilderFactory

      public static DocumentBuilderFactory getDocumentBuilderFactory()
      Creates default document builder factory.
      Returns:
      document builder factory implementation
    • createSAXParserFactory

      public static SAXParserFactory createSAXParserFactory()
      Creates default SAX parser factory.
      Returns:
      SAX parser factory implementation
    • initNewXmlDocument

      public static Document initNewXmlDocument() throws ParserConfigurationException
      This method creates a new empty Xml document.
      Returns:
      a new Xml document
      Throws:
      ParserConfigurationException - if an error occurs while creating the document