Class XMLUtils


  • public class XMLUtils
    extends java.lang.Object
    Class containing various utility methods when parsing, processing and working with XML files.
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.xml.parsers.DocumentBuilderFactory createSecureDocumentBuilderFactory()
      Create new instance of a document builder factory with secure features enabled.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XMLUtils

        public XMLUtils()
    • Method Detail

      • createSecureDocumentBuilderFactory

        public static javax.xml.parsers.DocumentBuilderFactory createSecureDocumentBuilderFactory()
                                                                                           throws javax.xml.parsers.ParserConfigurationException
        Create new instance of a document builder factory with secure features enabled. The document builder created by this method will not allow DOCTYPE or external DTDs.
        Returns:
        New instance of DocumentBuilderFactory.
        Throws:
        javax.xml.parsers.ParserConfigurationException - If DocumentBuilderFactory could not be created due to unsupported features.