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: Query to Link OM Order Source with AR Grouping Rules and Attributes

SELECT      hou.name,     rtsa.name "Order Source/Transaction Source",     rtsa.description "Description",     gr1.name ...