- java.lang.Object
-
- com.sun.xml.xsom.parser.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SAXParserFactorycreateParserFactory(boolean disableSecureProcessing)Returns properly configured (e.g.
-
-
-
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
-
-