PackageDescription: XMLWriter

XML Writer

Last published: January 25, 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 |
html body
style: 'background-color: blue; color: white';
with: [:body |
body div text: 'Hello World'.
body text: 'How are you?'.
body a href: ''; text: 'Fine thank you']].
stream contents