Friday, February 26, 2016

Generate XML using SQL

 SELECT XMLConcat(XMLElement("html"
                                ,XMLElement("GenericInfo"
                                           ,XMLElement("VendorSite"
                                                      ,XMLElement("Attribute1"
                                                                 ,'chidam')
                                                      ,XMLElement("Attribute2"
                                                                 ,'raja')
                                                     )),                                                          
                                XMLConcat(XMLElement("body"
                                           ,XMLElement("EftUserNumber"
                                                      ,'test1')
                                           ,XMLElement("VendorPayGroup"
                                                      ,'test2')
                                           ,XMLElement("ExtBankName"
                                                      ,'test3'))))) from dual

No comments:

Post a Comment

Oracle EBS R12 – Query to View Consolidated Invoice Details with Individual Transactions

SELECT     hp.party_name                  AS customer_name,     aca.account_number             AS customer_account,     hci.cons_billing_num...