Common Lisp Package: ZAWS-XML

README:

FUNCTION

Public

TRY-TO-XML-BIND (BINDER-NAME SOURCE)

Like XML-BIND, but catches any XML-BINDING-ERRORs; if any errors are caught, NIL is the primary value and the error object is the secondary value.

Undocumented

BFUN (KEY)

BVALUE (KEY BINDINGS)

XML-BIND (BINDER-NAME SOURCE)

Private

COLLECT-REST-ALIST (SOURCE)

Collect the rest of SOURCE, up to an un-nested closing tag, as an alist of element names and their character contents.

CREATE-ALIST-BINDER (KEY NEXT-FUN)

Return a function that returns the rest of SOURCE as an alist of element-name/element-content data.

CREATE-BINDER (FORM &OPTIONAL (NEXT-FUN (CREATE-BINDINGS-RETURNER)))

Process FORM as an XML binder pattern and return a closure to process an XML source.

CREATE-BINDINGS-EXTENDER (KEY NEXT-FUN)

Return a function that extends BINDINGS with KEY and a value of whatever character data is pending in SOURCE.

CREATE-BINDINGS-RETURNER

Return a function that does nothing but return its BINDINGS, effectively ending matching.

CREATE-ELEMENT-END-MATCHER (ELEMENT-NAME NEXT-FUN)

Return a function that expects to see the end of ELEMENT-NAME next in SOURCE.

CREATE-ELEMENT-START-MATCHER (ELEMENT-NAME NEXT-FUN)

Return a function that expects to see the start of ELEMENT-NAME next in SOURCE.

CREATE-SEQUENCE-BINDER (KEY FORMS NEXT-FUN)

Return a function that creates a list of sub-bindings based on a sub-matcher, with KEY as the key.

CREATE-SKIPPER (ELEMENT-NAME NEXT-FUN)

Return a function that skips input in SOURCE until it sees a closing tag for ELEMENT-NAME. Nested occurrences of elements with the same ELEMENT-NAME are also skipped.

CREATE-SPECIAL-PROCESSOR (OPERATOR FORM NEXT-FUN)

Handle special pattern processing forms like BIND, SKIP-REST, SEQUENCE, etc.

Undocumented

COLLECT-CHARACTERS (SOURCE)

CREATE-ALTERNATE-BINDER (SUBFORMS NEXT-FUN)

CREATE-OPTIONAL-BINDER (SUBFORMS NEXT-FUN)

CREATE-SUB-BINDER-BINDER (BINDER-NAME NEXT-FUN)

FIND-BINDER (NAME &OPTIONAL (ERRORP T))

MAKE-BINDER (FORM)

SKIP-CHARACTERS (SOURCE)

SKIP-DOCUMENT-START (SOURCE)

XML-DOCUMENT-ELEMENT (SOURCE)

XML-SOURCE (SOURCE)

MACRO

Public

Undocumented

ALIST-BIND (BINDINGS ALIST &BODY BODY)

DEFBINDER (NAME &BODY SOURCE)

Private

Undocumented

CATCHING-XML-ERRORS (&BODY BODY)

GENERIC-FUNCTION

Private

Undocumented

ACTUAL (CONDITION)

SETFACTUAL (NEW-VALUE CONDITION)

EXPECTED (CONDITION)

SETFEXPECTED (NEW-VALUE CONDITION)

SLOT-ACCESSOR

Private

Undocumented

CLOSURE (OBJECT)

SETFCLOSURE (NEW-VALUE OBJECT)

SOURCE (OBJECT)

SETFSOURCE (NEW-VALUE OBJECT)

VARIABLE

Private

Undocumented

*BINDER-DEFINITIONS*

CLASS

Public

Undocumented

SEQUENCE

Private

Undocumented

BINDER

CONDITION

Private

Undocumented

XML-BINDING-ERROR