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



On Wed, Nov 14, 2001 at 04:47:43PM +0000, Matt Sergeant wrote:
Daniel et al,

How do I set the Base directory before parsing a string or stream? Can I
do that in the ParserCtxt?

  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.

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]