<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi<div><br></div><div>here is the example on LWM:</div><div><br></div><div><font class="Apple-style-span" face="'Courier New'">CL-USER 17 > (cxml:parse #P"CellCycle-1991Tys-2.xml" (cxml:make-whitespace-normalizer (make-instance 'sax:default-handler)) :validate nil)<br>NIL<br><br>CL-USER 18 > (with-open-file (f #P"CellCycle-1991Tys-2.xml" :direction :input)<br> (cxml:parse f (</font><span class="Apple-style-span" style="font-family: 'Courier New'; ">cxml:make-whitespace-normalizer </span><span class="Apple-style-span" style="font-family: 'Courier New'; ">(make-instance 'sax:default-handler)) :validate nil))</span></div><div><font class="Apple-style-span" face="'Courier New'"><br>Error: Binary operation READ-BYTE attempted on character stream #<STREAM::LATIN-1-FILE-STREAM /Users/marcoxa/Projects/Genomics/biolosyst/sbmlambda/tests/CellCycle-1991Tys-2.xml>.<br> 1 (abort) Return to level 0.<br> 2 Return to top loop level 0.<br><br>Type :b for backtrace or :c <option number> to proceed.<br>Type :bug-form "<subject>" for a bug report template or :? for other options.<br><br>CL-USER 19 : 1 > </font></div><div><br></div><div>And here is the doc string for cxml:parse</div><div><br></div><div> <font class="Apple-style-span" face="'Courier New'">"@arg[input]{A string, pathname, octet vector, or <b>stream</b>.}<br> @arg[handler]{A @class{SAX handler}}<br> @arg[validate]{Boolean. Defaults to @code{nil}. If true, parse in<br> validating mode, i.e. assert that the document contains a DOCTYPE<br> declaration and conforms to the DTD declared.}<br>...</font></div><div><font class="Apple-style-span" face="'Courier New'"> @arg[recode]{Boolean. (Ignored on Lisps with Unicode<br> support.) Recode rods to UTF-8 strings. Defaults to true.<br> Make sure to use @fun{utf8-dom:make-dom-builder} if this<br> option is enabled and @fun{rune-dom:make-dom-builder}<br> otherwise.}<br> @return{The value returned by @fun{sax:end-document} on @var{handler}.}<br><br> Parse an XML document from @var{input}, which can be a string, pathname,<br> octet vector, or <b>stream</b>.<br>...<br> All SAX parsing functions share the same keyword arguments. Refer to<br> @fun{parse} for details on keyword arguments."</font></div><div><br></div><div>It appears that you need a '<font class="Apple-style-span" face="'Courier New'">xstream</font>', but this is against the doc string content (and IMHO, against common sense).</div><div><br></div><div>Cheers</div><div><br><div>--<br>Marco Antoniotti<br><br></div><br></div></body></html>