Re: [xml] Glitch with external entity files; patch enclosed

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Fri Nov 10 2000 - 16:35:38 EST


On Fri, Nov 10, 2000 at 02:19:18PM -0600, David Lofquist wrote:
> A workaround is to modify context->directory to the DTD directory before a
> call to xmlParseDocument(context) to be the path to the DTD file (in Ken's
> case, "/dvl/fds/dtd/"). I think this works for DTDs on inter/intranets as
> well. It also seems to fit in with the spec to allow the default base URI
> be application-dependent.
>
> Is this an exploitation of libxml or an undocumented feature? :)

  well it is a dangerous use of a publicly available but undocumented
data structure :-)
  The correct way in the case the URI is broken is to implement a catalog
by using the DTD PUBLIC identifier instead of the SYSTEM (URI) one.

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | libxml Gnome XML toolkit
Tel : +33 476 615 257  | 655, avenue de l'Europe | http://xmlsoft.org/
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Rpmfind search site
 http://www.w3.org/People/all#veillard%40w3.org  | http://rpmfind.net/
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Nov 10 2000 - 16:43:27 EST