Just check "XMLWriter-tbn.5" which can be found in "http://squeaksource.com/PharoGoodies/" ------------------------------------------------------ |writer| writer := XMLTagWriter xml. writer comment: 'A new xml file'. writer tag: 'package' with: [ writer cData: 'name' with: 'XMLWriter'. ]. writer contents returns <?xml version="1.0" encoding="UTF-8"?> <!-- A new xml file --> <package> <name><![CDATA[XMLWriter]]></name> </package> ------------------------------------------------------ You can also access the stream (writer stream). Indenting is not yet working fully but at least it should give you idea. Check out the test cases for more. I once saw such an XMLWriter written by Ernest Micklei in VAST (credits for the idea) and rebuilt it in Pharo. Bye T. -- GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl. Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl