Package: cxml-stp

Function serialize

Lambda List

serialize (node handler)

Arguments

Details

This function generates SAX events representing node.

Use this function together with a serialization sink to generate a serialized XML document.

Examples. Serializing to a stream:
CL-USER> (stp:serialize (stp:make-document (stp:make-element "test"))
			(cxml:make-character-stream-sink *standard-output*))
<?xml version="1.0" encoding="UTF-8"?>
<test/>
#<SWANK-BACKEND::SLIME-OUTPUT-STREAM {10037EA611}>
Examples. Serializing to a string:
CL-USER> (stp:serialize (stp:make-document (stp:make-element "test"))
			(cxml:make-string-sink))
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<test/>"


 

See also