Re: [xml] Parsing XML from an already open file

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Fri Jan 14 2000 - 05:07:04 EST


On Fri, Jan 14, 2000 at 10:42:09AM +0100, Michael Schmeing wrote:
> I was wondering wether there is any way to pass an open file-descriptor
> (either a FILE* from stdout or an fd as returned by the kernel
> open() function) to libxml and have the contents parsed.
>
> The reason is that I am writing a program that gets its input to be
> parsed from stdin from another program.
>

  Hi Michael,

 seems that this interface is missing, however for stdin,
xmlParseFile("-") will do what you want.

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


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:58 EDT