Luís
You can remove the fields between the last .AddTableSchema() and the ToXML() method calls.
In your case, that would be
LOCAL XMLChild AS XMLTable
m.XMLChild = m.oAdapter.Tables(STRCONV("TaxasIVA", 12))
m.XMLChild.Fields.Remove(STRCONV("fno", 12))
m.XMLChild = m.oAdapter.Tables(STRCONV("Linhas", 12))
m.XMLChild.Fields.Remove(STRCONV("fno", 12))
>Hello Antonio,
>
>Thanks for your reply.
>When you say:
>You may remove the unwanted columns from the Fields collection of the respective item in the Tables collection. They won't be generated by ToXML().
>
>Where exactly i remove the unwanted columns, i cannot remove them because i need them on SET RELATION.
>This is on oAdapter.AddTableSchema('LINHAS') where i can define what fields i want ?
>
>Could you give based on my code, where i must remove them ?
>
>Best regards,
>Luis
----------------------------------
António Tavares Lopes