> If you don't want some field to appear in XML, remove corresponding XMLField object from XMLTable.Fields collection.
I thought of that but assumed it that would upset the nesting but it doesn't! That workd fine thanks for the suggestion.
One last problem I can't seem to solve at the moment is how to add attributes to the top level node. I can name the top level node like this:
loAdapter.XMLName=STRCONV("MessageHeader",5)
Problem is how can I then add additional attributes to this such as FromCode, FromCompany, ToCode, ToCompany etc.
Thx,
Nick