I have a table with an XMLTYPE column named "InvoiceXML".
The data in this column is XML in the form:
<Invoice CustomerNum="1234" >
<CustomDeliveryDetails />
</Invoice>
When i do
SELECT ... FOR XML PATH(''), ROOT('Invoices')
In the end, I:
<Invoices>
<InvoiceXML>
<Invoice CustomerNum="1234" >
<CustomDeliveryDetails />
</Invoice>
</InvoiceXML>
</Invoices>
How to stop InvoiceXML column name appearing on output?
David source
share