I'm having a hard time figuring out how to put attributes on what I would call an xmlrow? This is getting me close to what I need to create in the attached image.
It produces the following:
Code:
select xmlserialize( xmlelement(name "QuotationRequest", xmlattributes('2020-03-09' as "documentDate", 'SALE' as "transactionType"), xmlelement(name "LineItem", xmlattributes('1' as "lineItemNumber", 'Store Loc Code' as "locationCode"), 'x' ) ) as clob excluding xmldeclaration ) --into :ccCaptureService from sysibm.sysdummy1
Code:
<QuotationRequest documentDate="2020-03-09" transactionType="SALE"> <LineItem lineItemNumber="1" locationCode="Store Loc Code">x</LineItem> </QuotationRequest>
Comment