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

Customer Credit Card Query

 select hca.cust_account_id,        hca.party_id,        hcas.party_site_id,        site_use_id,        hcsu.org_id,        hca.account_numb...