One way you may be able to do what you want with minimal effort would be to write the XML as usual, with whatever tool you care about, then process it with XSL to produce the strange results you need. - Norm -