Re: [xml] setting base for non-file parsing



On Wed, Nov 14, 2001 at 05:52:10PM +0000, Matt Sergeant wrote:
On Wed, 14 Nov 2001, Daniel Veillard wrote:
  Hum, the URL of the document node is inherited from the
one of the parser input stream. A string or a stream don't have
one. ctxt->input->filename is the place where the input filename
is stored, ad that's what get copied in doc->URL which gives
the base of the document.

Funny I found ctxt->directory worked. *shrug* :-)

  Yes, but I wasn't sure it would cover all cases :-)

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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