Re: Error loading ultra-edit XML files and line numbers
Victor Morilla Padial <[email protected]> Tue, 19 Sep 2006 22:52:52 +0200
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Message-ID | <[email protected]> |
Dmitry Lizorkin wrote: > > Victor, for your project, you can use a variation that provides > skipping several starting characters, for example, thus: > > (lambda (req-uri) > (let ((port (open-input-resource req-uri))) > (let loop () > (if (char=? (peek-char port) #\<) > (ssax:xml->sxml port '()) > (begin > (read-char port) > (loop)))))) > > We can probably think of making the sxml:document function > customizable for providing such a semantics. > > Dmitry > > > Thanks Dmitry, works fine (but you must take care of closing ports) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV