doxml Manual Version 0.5: doxml_open_stream()

$Id: openstrm.html,v 1.9 1999/07/24 22:04:05 francis Exp $

doxml_context* doxml_open_stream(FILE* stream,
                                 int close_stream_after_parsing);

doxml_open_stream() is used to start parsing a stdio FILE (input stream). It returns a context that can be passed to doxml_parse().

The second parameter, close_stream_after_parsing, indicates whether the stream should be closed when the context is passed to doxml_close(). For example, if you're reading a file that contains XML embedded in it, and you need to resume reading the file after parsing the XML, you would pass 0.