[Newbies] Using SAX to get the contents of a node
david.mitchell at gmail.com
Wed Apr 20 00:32:55 UTC 2011
I don't know if this caution applies in Squeak, but in Java land, the SAX
parsers don't guarantee that there is only one call to character for the
text between the tags. That is, you can't set aString directly, you have to
build up the response in case there are multiple calls to the character
On Tue, Apr 19, 2011 at 1:50 PM, Andy Burnett <
andy.burnett at knowinnovation.com> wrote:
> hernan.morales said
> Write a method
> YourSAXParser>>characters: aString
> to access the contents of the current node in aString. YourSAXParser
> should be a subclass of SAXHandler.
> Thanks Hernan, I now have a working system.
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners