Thanx. In the meantime I figured it out the same way as you - but thanks anyway. In fact I was a little surprised, that the amount of topics was so limited to this very common use file I/O.
I am creating an XML output and using API. I have succes with adding attributes to the 'testsuite' tag, but I cannot find the right construction to add attributes to the child - e.g. the child 'testcase' tag. Anyone have success with this?