From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Jan 24 2000 - 08:29:45 EST
On Mon, Jan 24, 2000 at 01:04:07PM +0100, Stephane Conversy wrote:
>
> I saw somewhere that you added code to handle external entities.
> Could it be used to implement cached DTDs, that is
> parse once a dtd, and when loading an xml to be validated,
> pass the structure representing the dtd to the validation mechanism ?
> If so, could you give me some insights about the way to do that ?
Well the function is:
void xmlSetExternalEntityLoader(xmlExternalEntityLoader f);
but it works at the I/O level only.
Parsing DTD isn't that costly as far as I can tell, through retrieving
them can be a serious slow down. That why i did it taht way.
That doesn't prevent adding a Dtd cache in parsed form. However
some tweaking of libxml core may be needed. Then it's just applying
int xmlValidateDtd (xmlValidCtxtPtr ctxt,
xmlDocPtr doc,
xmlDtdPtr dtd);
to the given parts.
> another request: when doing
> 'somestuff-config --version'
> it displays a 3 dotted number:
>
> $ gtk-config --version
> 1.2.6
> $ gtkmm-config --version
> 1.0.2
>
> but when doing that with libxml with got:
> $ xml-config --version
> libxml 1.8.5
>
> Having only the numbers is useful when comparing against
> version number. Would it hurt if you change xml-config and make
> it behave like other tools ?
That's easy, and makes sense, I will commit the change soon,
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux XML libxml WWW Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind http://www.w3.org/People/all#veillard%40w3.org | RPM badminton Kaffe ---- Message from the list xml@xmlsoft.org Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@xmlsoft.org
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:58 EDT