SAXHandler issue?

Michael Rueger m.rueger at acm.org
Tue May 20 08:10:18 UTC 2003


Chris Pettitt wrote:

> I ran into what I think is a bug in SAXHandler parseDocumentFrom: where
> the method tries to send validation: message to SAXDriver, but SAXDriver
> does not have this method. I resolved this issue by changing the message
> to validating: which does work with the SAXDriver.

Which version of Squeak are you using? This bug shouldn't be in the 
versions that have the XML parser already loaded. Just checked the 3.6 
image.


> data _ '<?xml version="1.0" encoding="windows-1252"
> standalone="no"?><log><record>some characters</record></log>'.
> stream _ ReadStream on: collection.
> parser _ EventParser parseDocumentFrom: stream.

| data stream document |
data _ '<?xml version="1.0" encoding="windows-1252" standalone="no"?>
<log><record>some characters</record></log>'.
stream _ ReadStream on: data.
document _ XMLDOMParser  parseDocumentFrom: stream.

This worked just fine for me...

> With these bugs I've come across I am starting to wonder if SAXHandler and
> SAXDriver are still maintained? If not, could some one recommend a SAX

Yes, by me :-)

Cheers

Michael




More information about the Squeak-dev mailing list