Class XmlFactory


  • public final class XmlFactory
    extends Object
    Provides helper methods for creating properly configured XML parser factory instances with namespace support turned on and configured for security.
    Author:
    snajper
    • Method Detail

      • createParserFactory

        public static SAXParserFactory createParserFactory​(boolean disableSecureProcessing)
                                                    throws IllegalStateException
        Returns properly configured (e.g. security features) parser factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true
        Throws:
        IllegalStateException