chickadee » expat » expat:make-parser

expat:make-parser #!key (encoding #f) (namespaces #f) (namespace-separator :)procedure

Creates a parser object with the specified attributes. encoding should be a string designating the encoding of the document and should be one of the following:

  • UTF-8
  • UTF-16
  • ISO-8859-1

If no encoding or #f is given, then the encoding specified in the document. Note that the strings passed to the handlers are always UTF-8 encoded.

If namespaces is true, then namespace declarations are properly recognized and tags belonging to a namespace will be prefixed with the namespace string and the character given in namespace-separator.