<div dir="ltr">Can you paste the part it warns about here?<br><br>If you want it to pass you the line no, read the XML from a file input.<br><br>M<br><br><div class="gmail_quote">2008/8/16 Hans Petter Egesund <span dir="ltr"><<a href="mailto:petter.egesund@gmail.com">petter.egesund@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="">
<div>Yes, this is right. </div><div><br></div><div>Strange enough ssax gives me a warning on my valid (?!) xml-file. No other parsers complains, neither do xmllint.</div><div><br></div><div>Petter</div><div><br></div><div>
 </div><div><br></div><br><div><div>Den 16. aug. 2008 kl. 14.33 skrev Mikael More:</div><div><div></div><div class="Wj3C7c"><br><blockquote type="cite"><div dir="ltr">That is both correct and not correct. It uses input-port-byte-position when generating an error response, not otherwise. It typically passes you errors in case you fed the deserializer with invalid XML. Here's an utility function to deserialize an XML string into SXML.<br>
 <br><div style="margin-left: 40px;">(define readxml (lambda (#!optional (namespace-prefix-assig "")) (lambda (port) (ssax:xml->sxml port namespace-prefix-assig))))<br><br>(define (xml-string->sxml s #!optional (namespace-prefix-assig ""))<br>
   (call-with-input-string s (readxml namespace-prefix-assig)))<br></div><br>Though, I do admit that it would be nice if someone fixed SSAX-SXML in this respect.<br><br>M<br><br><div class="gmail_quote">2008/8/16 Hans Petter Egesund <span dir="ltr"><<a href="mailto:petter.egesund@gmail.com" target="_blank">petter.egesund@gmail.com</a>></span><br>
 <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, more on slow xml...<br> <br> I can't get ssax to parse from a string, it seems the library is<br>
 using input-port-byte-position which needs a device input port. So<br> the attempt so slurp the file into memory, and then do the parsing<br> ends here?!<br> <br> I will tell if I come up with something interesting.<br> <font color="#888888"><br>
 Petter<br> </font><div><div></div><div><br> <br> _______________________________________________<br> Gambit-list mailing list<br> <a href="mailto:Gambit-list@iro.umontreal.ca" target="_blank">Gambit-list@iro.umontreal.ca</a><br>
 <a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br> </div></div></blockquote></div><br></div><div style="margin: 0px;">
_______________________________________________</div><div style="margin: 0px;">Gambit-list mailing list</div><div style="margin: 0px;"><a href="mailto:Gambit-list@iro.umontreal.ca" target="_blank">Gambit-list@iro.umontreal.ca</a></div>
<div style="margin: 0px;"><a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a></div> </blockquote></div></div></div><br>
</div><br>_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
<br></blockquote></div><br></div>