4.3 Parser Functions

Scheme procedure: xml-primitive-parse parser input isfinal

Parse next piece of input. Arguments are:

parser

A parser returned from a previous call to xml-primitive-make-parser or xml-make-parser.

input

A piece of input text.

isfinal

Boolean value indicating whether input is the last part of input.

Scheme function: xml-parse-more parser input

Equivalent to:

 
(xml-primitive-parse parser input #f)

unless input is an end-of-file object, in which case it is equivalent to:

 
(xml-primitive-parse parser "" #t)
Scheme function: xml-parse parser [port]

Reads XML input from port (or the standard input port, if it is not given) and parses it using xml-primitive-parse.