Last published: January 24, 2007 by 'michael'
Defines 1 Classes
Extends 2 Classes
This package gives you a cheap and easy way to write out XML to a stream. This is primarily useful for streaming out XHTML, eg:
| stream writer |
stream := String new writeStream.
writer := stream asXmlWriter.
writer html: [:html |
style: 'background-color: blue; color: white';
with: [:body |
body div text: 'Hello World'.
body text: 'How are you?'.
body a href: 'http://www.google.com'; text: 'Fine thank you']].