Monday, January 11, 2010

Pharo/Squeak and XML

If you want to work with XML in Pharo or Squeak you should have a
look at these two projects:

- XMLSupport
- Pastell

An example:


|stream doc|
stream := '<foo bar="1"/>' readStream.
doc := XMLDOMParser parseDocumentFrom: stream.
doc root @ #bar


returns 1

So XPath is built in Smalltalk ;)

No comments: