[gdome]DTD loading



Hi. I'm working on a project called GNU EPrints. This is a large PERL
project which uses lots of XML configuration files.

I've been using a PERL implementation of DOM (XML::DOM) which has worked
fine but I've run into some speed and scalability issues and wanted to
shift to XML::GDOME which is the PERL wrappers for the gdome library.
Ideally I want to support both, because XML::DOM is easier to install
for demo systems.

I've run into a number of problems, and am hoping someone can help...

* I have a number of files which have a DTD defined at the top. The DTD
   contains values for entities used in the XML file but does not appear
   to be read unless I set "LOAD...VALID" in which case it spews errors
   as I do not have a complete DTD defined. If I move the ENTITY definitions
   into the top of the XML file then it works as expected, but I do not want
   to do this as the same set of entities is used by a number of files and
   can be changed when configuration options in the software change.

   A workaround might be to do something hacky using load with entity table,
   but there is no perl wrapper for that.

* Memory is important to me. If anyone understands how XML::GDOME cleans up
   unreferenced documents I'd like to know. If it doesn't then it's not going
   to be any use to me :(

* I've had some problems deep cloning document fragments and calling getOwner
   on the same. I'm not sure if this is a the library or the PERL wrapper 
   interface.

-- 
    Christopher Gutteridge -- cjg ecs soton ac uk -- +44 (0)23 8059 4833

                                              ,___O<
 _____________________________________________(___)________________________
|                                   |                                      |
| Now Playing: "New Genious         | "There is no such thing as           |
| (Brother)" from Gorillaz -        | offensive material only offended     |
| Gorillaz                          | people" - anon.                      |
|___________________________________|______________________________________|




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]