[cxml-devel] Parsing from a stream

David Lichteblau david at lichteblau.com
Tue Feb 19 18:04:18 UTC 2008


Hi,

Quoting Chaitanya Gupta (mail at chaitanyagupta.com):
> CL-USER> (with-input-from-string (s "<foo>bar</foo>")
>           (cxml:parse s (cxml-dom:make-dom-builder)))
> I tried this on ACL 8.0 and CXML is from CVS. Shouldn't string streams be 
> parseable?

parsing from character streams is a reasonable feature suggestion, but
currently not implemented.  When parsing from streams, the stream must
have element-type (unsigned-byte 8).

However, you can parse from a string directly.  Is that good enough for
now?

(cxml:parse "<foo>bar</foo>" (cxml-dom:make-dom-builder))


d.



More information about the cxml-devel mailing list