Monday 13 May 2013

Functions and Procedures of DBMS_XMLGEN


set pages 0
set linesize 150
set long 9999999
set head off
--Without Loop-----
select dbms_xmlgen.getxml('select vendor_id,segment1,vendor_name from po_vendors where rownum<3') xml from dual







--With Loop-----
select dbms_xmlgen.getxml('select inventory_item_id,segment1,cursor(select ood.organization_id,ood.organization_code,ood.organization_name from org_organization_definitions ood where msi.organization_id=ood.organization_id) org_row from mtl_system_items_b msi where inventory_item_id=1 and rownum<11 rownum<3') xml from dual



Closes the context and releases all resources
Converts the XML into the escaped or unescaped XML equivalent
Gets the number of SQL rows that were processed in the last call to GETXML Functions
Gets the XML document
Gets the XML document and returns it as XMLType
Creates a new context handle
Restarts the query to start fetching from the beginning
Sets whether special characters such as $, which are non-XML characters, should be converted or not to their escaped representation
Sets the maximum number of rows to be fetched each time
Sets NULL handling options
Sets the name of the element enclosing the entire result
Sets the name of the element enclosing each row of the result
Sets the number of rows to skip every time before generating the XML.
Forces the use of the collection column name appended with the tag _ITEM for collection elements
Specified weather to use an XML attribute to indicate NULLness, or to do it by omitting the inclusion of the particular entity in the XML document.

No comments:

Post a Comment

CREATING A SUPPLIER IN R12 (Functional and SUPPLIERS IN TCA)

Who is a Supplier? Let us now understand who is a Supplier with the help of a simple example: We consider us as a business, who sell...