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 Tax Registration - EBS Query

              SELECT DISTINCT  hp.party_type, hp.party_name, hca.account_name, hp.party_number, hps.party_site_number, ...