API for package XML

A simple XML parser with an efficient, purely functional, event-based interface as well as a DOM interface

(echo-xml in out)   function

Parse a toplevel XML element from stream in, echoing and pretty printing the result to stream out

(get-entities xml-parser-state)   generic-function

Get the entities hashtable of an XML parser state

(setf (get-entities xml-parser-state) new-value)   generic-function

Set the entities hashtable of an XML parser state

(get-finish-element-hook xml-parser-state)   generic-function

Get the finish element hook of an XML parser state

(setf (get-finish-element-hook xml-parser-state) new-value)   generic-function

Set the finish element hook of an XML parser state

(get-new-element-hook xml-parser-state)   generic-function

Get the new element hook of an XML parser state

(setf (get-new-element-hook xml-parser-state) new-value)   generic-function

Set the new element hook of an XML parser state

(get-seed xml-parser-state)   generic-function

Get the initial user seed of an XML parser state

(setf (get-seed xml-parser-state) new-value)   generic-function

Set the initial user seed of an XML parser state

(get-text-hook xml-parser-state)   generic-function

Get the text hook of an XML parser state

(setf (get-text-hook xml-parser-state) new-value)   generic-function

Set the text hook of an XML parser state

(parse-xml stream &key output-type)   function

Parse a character stream as XML and generate a DOM of output-type, defaulting to :lxml

(parse-xml-dom stream output-type)   generic-function

Parse a character stream as XML and generate a DOM of output-type

(parse-xml-file filename &key output-type)   function

Parse a character file as XML and generate a DOM of output-type, defaulting to :lxml

(parse-xml-string string &key output-type)   function

Parse a string as XML and generate a DOM of output-type, defaulting to :lxml

(print-string-xml string stream)   function

Write the characters of string to stream using basic XML conventions

(print-xml dom &key stream pretty input-type header)   function

Generate XML output on a character stream (t by default) from a DOM of input-type (:lxml by default), optionally pretty printing (off by default), or adding a header (none by default)

(print-xml-dom dom input-type stream pretty level)   generic-function

Generate XML output on a character stream from a DOM of input-type, optionally pretty printing using level

(print-xml-string dom &key pretty input-type)   function

Generate XML output to a string from a DOM of input-type (:lxml by default), optionally pretty printing (off by default)

(start-parse-xml stream &optional state)   function

Parse and return a toplevel XML element from stream, using parser state

xml-parser-error   condition

Thrown by the XML parser to indicate errorneous input
Class precedence list: xml-parser-error error serious-condition condition standard-object t
Class init args: :stream :args :message

(xml-parser-error-args xml-parser-error)   generic-function

Get the error arguments from an XML parser error

(xml-parser-error-message xml-parser-error)   generic-function

Get the message from an XML parser error

(xml-parser-error-stream xml-parser-error)   generic-function

Get the stream from an XML parser error

xml-parser-state   class

The XML parser state passed along all code making up the parser
Class precedence list: xml-parser-state standard-object t
Class init args: :text-hook :finish-element-hook :new-element-hook :seed :entities

Documentation generated by lispdoc running on OpenMCL