src/javax/xml/parsers/DocumentBuilderFactory.java

Print this page

        

*** 421,431 **** * All implementations are required to support the {@link javax.xml.XMLConstants#FEATURE_SECURE_PROCESSING} feature. * When the feature is:</p> * <ul> * <li> * <code>true</code>: the implementation will limit XML processing to conform to implementation limits. ! * Examples include enity expansion limits and XML Schema constructs that would consume large amounts of resources. * If XML processing is limited for security reasons, it will be reported via a call to the registered * {@link org.xml.sax.ErrorHandler#fatalError(SAXParseException exception)}. * See {@link DocumentBuilder#setErrorHandler(org.xml.sax.ErrorHandler errorHandler)}. * </li> * <li> --- 421,431 ---- * All implementations are required to support the {@link javax.xml.XMLConstants#FEATURE_SECURE_PROCESSING} feature. * When the feature is:</p> * <ul> * <li> * <code>true</code>: the implementation will limit XML processing to conform to implementation limits. ! * Examples include entity expansion limits and XML Schema constructs that would consume large amounts of resources. * If XML processing is limited for security reasons, it will be reported via a call to the registered * {@link org.xml.sax.ErrorHandler#fatalError(SAXParseException exception)}. * See {@link DocumentBuilder#setErrorHandler(org.xml.sax.ErrorHandler errorHandler)}. * </li> * <li>
*** 515,525 **** * adding default values that were missing in documents), and a parser * is responsible to make sure that the application will receive * modified DOM trees. * * <p> ! * Initialy, null is set as the {@link Schema}. * * <p> * This processing will take effect even if * the {@link #isValidating()} method returns <code>false</code>. * --- 515,525 ---- * adding default values that were missing in documents), and a parser * is responsible to make sure that the application will receive * modified DOM trees. * * <p> ! * Initially, null is set as the {@link Schema}. * * <p> * This processing will take effect even if * the {@link #isValidating()} method returns <code>false</code>. *
*** 529,539 **** * property in conjunction with a {@link Schema} object. * Such configuration will cause a {@link ParserConfigurationException} * exception when the {@link #newDocumentBuilder()} is invoked.</p> * * ! * <h4>Note for implmentors</h4> * * <p> * A parser must be able to work with any {@link Schema} * implementation. However, parsers and schemas are allowed * to use implementation-specific custom mechanisms --- 529,539 ---- * property in conjunction with a {@link Schema} object. * Such configuration will cause a {@link ParserConfigurationException} * exception when the {@link #newDocumentBuilder()} is invoked.</p> * * ! * <h4>Note for implementors</h4> * * <p> * A parser must be able to work with any {@link Schema} * implementation. However, parsers and schemas are allowed * to use implementation-specific custom mechanisms