Re: [gdome]DTD loading



On Thu, 2002-08-29 at 16:07, Christopher Gutteridge wrote:

> * 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"

apparently LOAD_PARSING simply ignores the DTD. I guess we should
develope a new mode, say GDOME_LOAD_DTD or something. Keep in mind that
Gdome mostly works a s a wrapper to libxml2. That is to say: if there is
nothing like that in libxml2, it will take much longer (if not forever)
to have it in Gdome2. 

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

yes, we provided that prototype method in case one has a huge table of
entities to load, in which case loading them from the DTD takes a lot of
time.

> * 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 :(

assuming there are no bugs, the document is dereferenced as soon as the
last node is dereferenced. In other words, as long as you have one
single live reference to a node tree, the document tree is not freed,
because from that single node you can in principle reach any other node.

> * 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.

given that all the bindings to Gdome2 are quite simple and, as far as I
know, most of them are created automatically, I would suspect the
problem is in Gdome2. An equivalent C program raising the problem would
be a great help.

Regards,
luca




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