[Pharo-project] problem parsing XML

Usman Bhatti usman.bhatti at gmail.com
Sat Jun 9 09:46:41 EDT 2012

I am trying to parse XML files with rest APIs but I am getting an error due
to the absence of this classVariable: NameStartChars.

I could also reproduce this error with this pharo cast from Laurent where
he tries to parse Picasa XML.

To reproduce the error, execute these snippets:

Gofer new
    repository: 'http://ss3.gemstone.com/ss/xmlsupport';
    package: 'Collections-BitmapCharacterSet';
    package: 'Collections-OrderPreservingDictionary';
    package: 'ConfigurationOfXMLSupport';
    package: 'Pastell';
    package: 'XML-Parser';
    package: 'XML-Tests-Parser';

Gofer new squeaksource: 'XMLSupport'; package: 'XML-Parser'; squeaksource:
'Pharocasts'; package: 'Picasa'; load.

photos:=PicasaAPI new
    searchPhotos: 'miles+davis' maxResults: 3.
PhotoWall new viewPhotos: photos.

The problem is that the variable is used before being initialized. I'll see
if I can produce a fix.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120609/8381c8c9/attachment.html>

More information about the Pharo-dev mailing list