Hi,
Using CXML from CVS on SBCL, calling the following function on the attached file leads to an error "The value of UTF8-DOM::QNAME is #(111 102 102 105 99 101 58 99 111 108 ...), which is not of type UTF8-RUNES:ROD.". Without the ":recode nil" it parses the file.
(defun foo (filename) (with-open-file (in filename :direction :input :element-type '(unsigned-byte 8)) (cxml:parse-stream in (cxml-dom:make-dom-builder) :recode nil)))
Quoting Eric Marsden (eric.marsden@free.fr):
Using CXML from CVS on SBCL, calling the following function on the attached file leads to an error "The value of UTF8-DOM::QNAME is #(111 102 102 105 99 101 58 99 111 108 ...), which is not of type UTF8-RUNES:ROD.". Without the ":recode nil" it parses the file.
Ah, Sorry. I forgot to test XML parsing with the current patch for Closure.
Please try (rune-dom:make-dom-builder) instead of (cxml-dom:make-dom-builder).
On Lisps without Unicode, these are different. You'll get real runes (like closure wants them) only when you explictly ask for them.
Thanks, David