Hello, I found I could not set the XMLEntityManager property on XMLDTDLoader, and have made a patch to change that, is this on purpose ?
Regards. -- # Stef Epardaud, # Teachers have potentially more power than military, # Java Defeater # the former can teach us how to not need the latter. # Earth # Lunatech Research, # Solar System # soon we'll quit researching and start finding...
Index: src/org/apache/xerces/impl/dtd/XMLDTDLoader.java =================================================================== RCS file: /home/cvspublic/xml-xerces/java/src/org/apache/xerces/impl/dtd/XMLDTDLoader.java,v retrieving revision 1.7 diff -r1.7 XMLDTDLoader.java 75a76 > import org.apache.xerces.xni.parser.XMLComponentManager; 94a96 > * <li>http://apache.org/xml/properties/internal/entity-manager</li> 133a136,139 > /** Property identifier: entity manager. */ > public static final String ENTITY_MANAGER = > Constants.XERCES_PROPERTY_PREFIX + Constants.ENTITY_MANAGER_PROPERTY; > 141a148 > ENTITY_MANAGER, 283c290,292 < if(propertyId.equals( SYMBOL_TABLE)) { --- > if(propertyId.equals( ENTITY_MANAGER)) { > fEntityManager = (XMLEntityManager)value; > } else if(propertyId.equals( SYMBOL_TABLE)) { 400a410,435 > > /* > * Resets the component. The component can query the component manager > * about any features and properties that affect the operation of the > * component. > * > * @param componentManager The component manager. > * > * @throws SAXException Thrown by component on finitialization error. > * For example, if a feature or property is > * required for the operation of the component, the > * component manager may throw a > * SAXNotRecognizedException or a > * SAXNotSupportedException. > */ > public void reset(XMLComponentManager componentManager) > throws XMLConfigurationException { > XMLEntityManager entM = > (XMLEntityManager)componentManager.getProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.ENTITY_MANAGER_PROPERTY); > if(entM != null){ > fEntityManager = entM; > fEntityManager.setProperty(Constants.XERCES_PROPERTY_PREFIX + > Constants.ERROR_REPORTER_PROPERTY, fErrorReporter); > fDTDScanner.setEntityManager(fEntityManager); > } > super.reset(); > fEntityManager.reset(componentManager); > }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
