posted 22 years ago
Hi
I am using JAXP to parse through xml documents that are stored in a DB2 database. There are a total of about 2000 external entity files that may be used in these documents. The dtd does not contain references to these files. I am adding a doctype declaration at the top of each document as I read it in. Right now there are only seven external entity files. It seems like the parser is going through each one to make sure that they are well formed. I found this out because the parser gives an exception if the xml in the external file is not well formed. I am not sure if the parser also stores them in memory at this time for later expansion. My concern is if I go from 7 to 2000 entity declarations will this be practical or will it even work. Is there a better way to do this?
Thanks
Alia