More or less exactly the same..except the syntax.. but includes the CDATA, Comments, plainText, preproc etc..

instead of tag: with: .. I went off to..

{theTag}: theText cNode: []

mbAttr: taking a collection of assocs or strings.. for the attrib.

tabs are integrated with valueStringTrimmed dummping it without tabs/crlf..

will see if I can check in this too as an alternative to see means of merging the frameworks for best use..
*****

Just check "XMLWriter-tbn.5" which can be found in "http://squeaksource.com/PharoGoodies/"