XML parsing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

XML parsing

Nick
Hi,

I'm struggling to parse an XML document. I found an example in:

   XMLDOMParser addressBookXMLWithDTD

... however testing this example results in:

   XMLDocument doesNotUnderstand: #localName

a search revealed there is a bug logged against this:
http://bugs.squeak.org/view.php?id=32

I'm more inclined to believe that I'm using the wrong code or example
than that XML parsing is broken in Squeak. Is there a better example
to base my parsing code on?

I'm using Squeak 3.9 with an image from:
http://damien.cassou.free.fr/squeak-web/squeak-web-118.zip

Thanks

Nick
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: XML parsing

Michael Rueger-6
Nick Ager wrote:
> Hi,
>
> I'm struggling to parse an XML document. I found an example in:
>
>   XMLDOMParser addressBookXMLWithDTD
>
> ... however testing this example results in:
>
>   XMLDocument doesNotUnderstand: #localName

I just downloaded the image and the above works for me.
The image also seems to have the latest Yaxo package installed.

Could you send me the stack dump in SqueakDebug.log, so I can see what
might be happening?

Cheers

Michael
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: XML parsing

Nick
In reply to this post by Nick
> I just downloaded the image and the above works for me.
> The image also seems to have the latest Yaxo package installed.

> Could you send me the stack dump in SqueakDebug.log, so I can see what
> might be happening?

Thanks for checking the XML example on your machine. I tried it with a
fresh image and it worked for me as well. 1000 apologies for wasting
your time.
It turns out that I commented out some code before I found the example
and I was trying to make sense of the API cold.

Thanks again for the response. I'm now successfully parsing XML (in a
fresh image)

Nick
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners