Hi,
I just found out that the write-xml method which is available on datasets, temp-tables and temp-table buffers writes the whole temp-table to xml regardless of whether you use the temp-table or a buffer handle.
Placed a call for and this and tech support says this is a documentation bug.
This would be a very nice feature if it would work as expected write-xml for a buffer writes just that buffer.
Carl Verbiest
I created entry 0000003511 in the enhancement request system for this