> But when I try to run this within a for-loop, the XML-output is suppressed > and only the table caption is written: You'll need to wrap it in a print. I'll make a note in the man file. -- Max