DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24669>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24669

Internal entities added via addInternalEntity() are lost

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From [EMAIL PROTECTED]  2003-11-13 16:15 -------
This is working as designed. The table of entities in the XMLEntityManager
is transient. This table gets filled by the DTDScanner as it reads entity 
declarations in the DTD. It gets dumped on reset to remove entities from the 
previous parse.

If you want the parser to recognize arbitrary entities (which aren't declared 
anywhere) then you should probably create your own parser configuration, 
perhaps one which extends one of the Xerces configurations.

If you extended IntegratedParserConfiguration for instance, and overloaded 
createEntityManager with your own extentsion of XMLEntityManager which you load 
with some persistent predefined entities, you can achieve what you want. Just 
be warned that these implementation classes may change between releases. If 
you're comfortable with that, then this approach should work for you.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to