Documents
Create using make-document:CL-USER> (stp:make-document (stp:make-element "list"))
#.(STP:DOCUMENT :CHILDREN '(#.(STP:ELEMENT #| :PARENT of type DOCUMENT |# :LOCAL-NAME "list")))Children: May have at most one document-type, and must have exactly one element as a child (in this order). May also have comments and processing-instructions anywhere.
Properties (and their setf functions):
- document-element: Returns (replaces) the child that is an element.
- document-type: Returns (adds or replaces) the child that is a document-type, if any.