XML - PL/SQL help

Hello,
I am having a query as a part of my procedure block that extracts the following xml and stores it into a variable that is of xmltype:
<FeatureRoot>
<Feature>
<FeatureName>qaz</FeatureName>
<FeatureAction>Add</FeatureName>
</Feature>
<Feature>
<FeatureName>wsx</FeatureName>
<FeatureAction>Remove</FeatureAction>
</Feature>
</FeatureRoot>
Now what i want to do is loop through this variable (which is of xmltype) and print the values of the tags <FeatureName> and <FeatureAction> for every Feature.
(ie)
qaz Add
wsx Remove
Can you please tell me how i can loop through to extract the values?
Many Thanks,
Kalyani

user11912174 wrote:
Hello,
Thank you. The solutions may hold good on a normal context. What my problem is I want to run a loop through an anonymous block in pl/sql where I am already using a cursor where each record contains an xml value as above. So i need to be extracting for each run in a cursor. So i need to be extracting the <FeatureName> and <featureaction> values in each cursor run. Any help on this?
ThanksCan you not incorporate it as part of the cursor itself?
It can return the values as part of the data from the cursor rather than using PL/SQL extracts on the XML to do it.
SQL> ed
Wrote file afiedt.buf
  1  with myxml as
  2    (select xmltype('<FeatureRoot>
  3                       <Feature>
  4                         <FeatureName>qaz</FeatureName>
  5                         <FeatureAction>Add</FeatureAction>
  6                       </Feature>
  7                       <Feature>
  8                         <FeatureName>wsx</FeatureName>
  9                         <FeatureAction>Remove</FeatureAction>
10                       </Feature>
11                     </FeatureRoot>') myxml from dual union all
12     select xmltype('<FeatureRoot>
13                       <Feature>
14                         <FeatureName>aaa</FeatureName>
15                         <FeatureAction>Add</FeatureAction>
16                       </Feature>
17                       <Feature>
18                         <FeatureName>bbb</FeatureName>
19                         <FeatureAction>Remove</FeatureAction>
20                       </Feature>
21                     </FeatureRoot>') from dual)
22  select extractvalue(VALUE(t),'/Feature/FeatureName') featurename
23  ,      extractvalue(VALUE(t),'/Feature/FeatureAction') featureaction
24  from   myxml x
25* ,      table(xmlsequence(extract(x.myxml,'/FeatureRoot/Feature'))) t
SQL> /
FEATURENAME     FEATUREACTION
qaz             Add
wsx             Remove
aaa             Add
bbb             Remove
SQL>

Similar Messages

  • Xml  with sql loader

    Hi,
    i tried to load the xml datas into database using sql loader.
    CREATE DIRECTORY xml_dir AS '/:';
    GRANT READ ON DIRECTORY xml_dir TO wiki;
    xml.ctl
    OPTIONS (ERRORS=100, SILENT=(FEEDBACK))
    LOAD DATA
    INFILE 'emp.xml'
    APPEND
    INTO TABLE emp
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
    (empno,ename,job,mgr,hiredate,sal,comm,deptno)
    *emp.xml*
    <name>
    <empno>1</empno>
    <ename>1</ename>
    <job>1</job>
    <mgr>1</mgr>
    <hiredate></hiredate>
    <sal>1</sal>
    <comm>1</comm>
    <deptno>1</deptno>
    </name>
    i got the following errors in log
    Record 1: Rejected - Error on table EMP, column ENAME.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 2: Rejected - Error on table EMP, column ENAME.
    how to the sql*loader identify seperator in xml file.
    please help me out that.

    Hi,
    i tried to load the xml datas into database using sql loader.
    CREATE DIRECTORY xml_dir AS '/:';
    GRANT READ ON DIRECTORY xml_dir TO wiki;
    xml.ctl
    OPTIONS (ERRORS=100, SILENT=(FEEDBACK))
    LOAD DATA
    INFILE 'emp.xml'
    APPEND
    INTO TABLE emp
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
    (empno,ename,job,mgr,hiredate,sal,comm,deptno)
    *emp.xml*
    <name>
    <empno>1</empno>
    <ename>1</ename>
    <job>1</job>
    <mgr>1</mgr>
    <hiredate></hiredate>
    <sal>1</sal>
    <comm>1</comm>
    <deptno>1</deptno>
    </name>
    i got the following errors in log
    Record 1: Rejected - Error on table EMP, column ENAME.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 2: Rejected - Error on table EMP, column ENAME.
    how to the sql*loader identify seperator in xml file.
    please help me out that.

  • Peter Fabian from Ottawa – Wants to learn XML and SQL

    Hi There,
    I am Peter Fabian from Ottawa. I want to learn XML and SQL. I have basic knowledge of HTML. Please provide me necessary tutorial which can help me to learn XML and SQL.
    Thanks
    Peter Fabian

    Some starting points based on existing Oracle documentation
    [url http://www.oracle.com/technetwork/indexes/documentation/index.html]Oracle Documentation
    SQL - [url http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm]2 Day Developer&apos;s Guide
    XML DB - [url http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb01int.htm#ADXDB0100]XML DB Developer&apos;s Guide
    If you are going for the basics of XML, here is a place to start at [url http://www.w3schools.com/xml/]XML Tutorial
    You can also just google for tutorials on both SQL and XML and find the basics as well.

  • Generating XML from SQL queries and saving to an xml file?

    Hi there,
    I was wondering if somebody could help with regards to the following:
    Generating XML from SQL queries and saving to a xml file?
    We want to have a procedure(PL/SQL) that accepts an order number as an input parameter(the procedure
    is accessed by our software on the client machine).
    Using this order number we do a couple of SQL queries.
    My first question: What would be our best option to convert the result of the
    queries to xml?
    Second Question: Once the XML has been generated, how do we save that XML to a file?
    (The XML file is going to be saved on the file system of the server that
    the database is running on.)
    Now our procedure will also have a output parameter which returns the filename to us. eg. Order1001.xml
    Our software on the client machine will then ftp this XML file(based on the output parameter[filename]) to
    the client hard drive.
    Any information would be greatly appreciated.
    Thanking you,
    Francois

    If you are using 9iR2 you do not need to do any of this..
    You can create an XML as an XMLType using the new SQL/XML operators. You can insert this XML into the XML DB repository using DBMS_XDB.createResource. You can then access the document from the resource. You can also return the XMLType containing the XML directly from the PL/SQL Procedure.

  • Generating XML from SQL queries and saving to a xml file?

    Hi there,
    I was wondering if somebody could help with regards to the following:
    Generating XML from SQL queries and saving to a xml file?
    We want to have a stored procedure(PL/SQL) that accepts an order number as an input parameter(the procedure
    is accessed by our software on the client machine).
    Using this order number we do a couple of SQL queries.
    My first question: What would be our best option to convert the result of the
    queries to xml?
    Second Question: Once the XML has been generated, how do we save that XML to a file?
    (The XML file is going to be saved on the file system of the server that
    the database is running on.)
    Now our procedure will also have a output parameter which returns the filename to us. eg. Order1001.xml
    Our software on the client machine will then ftp this XML file(based on the output parameter[filename]) to
    the client hard drive.
    Any information would be greatly appreciated.
    Thanking you,
    Francois

    Hi
    Here is an example of some code that i am using on Oracle 817.
    The create_file procedure is the one that creates the file.
    The orher procedures are utility procedures that can be used with any XML file.
    PROCEDURE create_file_with_root(po_xmldoc OUT xmldom.DOMDocument,
    pi_root_tag IN VARCHAR2,
                                            po_root_element OUT xmldom.domelement,
                                            po_root_node OUT xmldom.domnode,
                                            pi_doctype_url IN VARCHAR2) IS
    xmldoc xmldom.DOMDocument;
    root xmldom.domnode;
    root_node xmldom.domnode;
    root_element xmldom.domelement;
    record_node xmldom.domnode;
    newelenode xmldom.DOMNode;
    BEGIN
    xmldoc := xmldom.newDOMDocument;
    xmldom.setVersion(xmldoc, '1.0');
    xmldom.setDoctype(xmldoc, pi_root_tag, pi_doctype_url,'');
    -- Create the root --
    root := xmldom.makeNode(xmldoc);
    -- Create the root element in the file --
    create_element_and_append(xmldoc, pi_root_tag, root, root_element, root_node);
    po_xmldoc := xmldoc;
    po_root_node := root_node;
    po_root_element := root_element;
    END create_file_with_root;
    PROCEDURE create_element_and_append(pi_xmldoc IN OUT xmldom.DOMDocument,
    pi_element_name IN VARCHAR2,
                                            pi_parent_node IN xmldom.domnode,
                                            po_new_element OUT xmldom.domelement,
                                            po_new_node OUT xmldom.domnode) IS
    element xmldom.domelement;
    child_node xmldom.domnode;
    newelenode xmldom.DOMNode;
    BEGIN
    element := xmldom.createElement(pi_xmldoc, pi_element_name);
    child_node := xmldom.makeNode(element);
    -- Append the new node to the parent --
    newelenode := xmldom.appendchild(pi_parent_node, child_node);
    po_new_node := child_node;
    po_new_element := element;
    END create_element_and_append;
    FUNCTION create_text_element(pio_xmldoc IN OUT xmldom.DOMDocument, pi_element_name IN VARCHAR2,
    pi_element_data IN VARCHAR2, pi_parent_node IN xmldom.domnode) RETURN xmldom.domnode IS
    parent_node xmldom.domnode;                                   
    child_node xmldom.domnode;
    child_element xmldom.domelement;
    newelenode xmldom.DOMNode;
    textele xmldom.DOMText;
    compnode xmldom.DOMNode;
    BEGIN
    create_element_and_append(pio_xmldoc, pi_element_name, pi_parent_node, child_element, child_node);
    parent_node := child_node;
    -- Create a text node --
    textele := xmldom.createTextNode(pio_xmldoc, pi_element_data);
    child_node := xmldom.makeNode(textele);
    -- Link the text node to the new node --
    compnode := xmldom.appendChild(parent_node, child_node);
    RETURN newelenode;
    END create_text_element;
    PROCEDURE create_file IS
    xmldoc xmldom.DOMDocument;
    root_node xmldom.domnode;
    xml_doctype xmldom.DOMDocumentType;
    root_element xmldom.domelement;
    record_element xmldom.domelement;
    record_node xmldom.domnode;
    parent_node xmldom.domnode;
    child_node xmldom.domnode;
    newelenode xmldom.DOMNode;
    textele xmldom.DOMText;
    compnode xmldom.DOMNode;
    BEGIN
    xmldoc := xmldom.newDOMDocument;
    xmldom.setVersion(xmldoc, '1.0');
    create_file_with_root(xmldoc, 'root', root_element, root_node, 'test.dtd');
    xmldom.setAttribute(root_element, 'interface_type', 'EXCHANGE_RATES');
    -- Create the record element in the file --
    create_element_and_append(xmldoc, 'record', root_node, record_element, record_node);
    parent_node := create_text_element(xmldoc, 'title', 'Mr', record_node);
    parent_node := create_text_element(xmldoc, 'name', 'Joe', record_node);
    parent_node := create_text_element(xmldoc,'surname', 'Blogs', record_node);
    -- Create the record element in the file --
    create_element_and_append(xmldoc, 'record', root_node, record_element, record_node);
    parent_node := create_text_element(xmldoc, 'title', 'Mrs', record_node);
    parent_node := create_text_element(xmldoc, 'name', 'A', record_node);
    parent_node := create_text_element(xmldoc, 'surname', 'B', record_node);
    -- write the newly created dom document into the buffer assuming it is less than 32K
    xmldom.writeTofile(xmldoc, 'c:\laiki\willow_data\test.xml');
    EXCEPTION
    WHEN xmldom.INDEX_SIZE_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Index Size error');
    WHEN xmldom.DOMSTRING_SIZE_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'String Size error');
    WHEN xmldom.HIERARCHY_REQUEST_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Hierarchy request error');
    WHEN xmldom.WRONG_DOCUMENT_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Wrong doc error');
    WHEN xmldom.INVALID_CHARACTER_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Invalid Char error');
    WHEN xmldom.NO_DATA_ALLOWED_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Nod data allowed error');
    WHEN xmldom.NO_MODIFICATION_ALLOWED_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'No mod allowed error');
    WHEN xmldom.NOT_FOUND_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Not found error');
    WHEN xmldom.NOT_SUPPORTED_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Not supported error');
    WHEN xmldom.INUSE_ATTRIBUTE_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'In use attr error');
    WHEN OTHERS THEN
    dbms_output.put_line('exception occured' || SQLCODE || SUBSTR(SQLERRM, 1, 100));
    END create_file;

  • How to generate XML from SQL query

    possible ways to generate XML from SQL qury.
    i want to generate XML of following query. "Select * from emp,dep wher emp.deptno=dept.deptno"

    Hello.
    Can you try:
    SQL> set pages 0
    SQL> set linesize 150
    SQL> set long 9999999
    SQL> set head off
    SQL> select dbms_xmlgen.getxml('Select * from emp,dep wher emp.deptno=dept.deptno') from dual;
    It works fine for me.
    Octavio

  • PIVOT sql help

    Hi again
    I need some PIVOT sql help
    In this query:
    SELECT
    SUM([RATES]) as RATES
    ,SUM([CONVERSION])as CONVERSION
    FROM REPORTING
    outputs
    RATES CONVERSION
    23 234
    How would change this query to display a table like:
    Name Amount
    RATES 23
    CONVERSION 234
    Keep up the good work !

    nikos101 wrote:
    > How would change this query to display a table like:
    Do you *HAVE* to change the query... you could just display
    it in the
    desired format if that it the ultimate and only goal.
    <table>
    <tr>
    <td>name</td>
    <td>amount</td>
    </tr>
    <cfoutput query="sumQry">
    <tr><td>Rates</td><td>#rates#</td></tr>
    <tr><td>Conversion</td><td>#conversion#</td></tr>
    </cfoutput>
    </table>

  • VIEW XML IN SQL*PLUS

    how can we view xml on sql*plus?
    when xmltype is viewed on sql*prompt it shows incomplete xml.
    example:
    SQL> select xmlelement("ROOT",xmlforest(1 as A, 2 as B, 3 as C)) from dual;
    XMLELEMENT("ROOT",XMLFOREST(1ASA,2ASB,3ASC))
    <ROOT>
    <A>1</A>
    <B>2</B>
    <C>3</C>
    </ROOT>
    but i generate an xml from table so it becomes quite huge. say a forest is populated with 6-8 tags. it shows broken output.
    SQL> /
    ID LIST
    <DEPT>
    <EMPLOYEE>
    <ID>2109</ID>
    <ID>3108</ID>
    <ID>4107</ID>
    <ID>5106</ID>
    <ID
    i have tried increasing bufferwidth and bufferlength tp max value (1000 and 2000 respectively) eventhen it displays the output as shown above.
    how can i view my xml?

    use this sql plus command:
    set long 2000000
    You can increase\decrease the value as required.

  • How to extract a tagged string using XML in sql server 2014?

    A column stores the string data with tag as below.I have to retrieve the value of ATRB_C1 as val1234 through xml
    Query:
    CREATE TABLE #test (col varchar(500))
    INSERT INTO #test VALUES('< ATRB_C value ="val1" />< ATRB_C1 value ="val234" />')
    SELECT * FROM  #test FOR XML RAW
    Output:
    <row col="&lt; ATRB_C value =&quot;val1&quot; /&gt;&lt; ATRB_C1 value =&quot;val234&quot; /&gt;" />
    Since the format is incorrect, not able to extract using xml.value
    Any help would be appreciated!!

    CREATE TABLE #test (col xml)
    INSERT INTO #test(col) VALUES('<ATRB_C value ="val1"/><ATRB_C1 value ="val234" />')
    SELECT * FROM #test
    Select Col1.value('(@value)[1]','varchar(20)') as [tab1_col1],col2.value('(@value)[1]','varchar(20)') as [tab2_col2]
    from #test cross apply col.nodes('/ATRB_C') as tab1(col1)
    cross apply col.nodes('/ATRB_C1') as tab2(col2)
    drop table #test
    Hope it Helps!!

  • Can anyone that works wirth xml in InDesign help me

    I am trying to create a schema to get an Excel workbook into xml so I can take that information and make a member list in inDesign CS6 so I don't have to type it by hand. This is the schema:
    <?xml version="1.0"?>
    <schema xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance">
    <element name="memberList">
        <member>
            <lastname>LastName</lastname>
            <firstname>FirstName</firstname>
            <phone>555-555-5555</phone>
            <streetaddress>streetaddress</streetaddress>
            <city>City</city>
            <state>State</state>
            <zipcode>Zip code</zipcode>
            <email>email</email>           
        </member>
    </element>
    </schema>
    When I bring the schema into Excel, everything seems to be fine except that the top of the tree is wrong in excel. memberList is nott at the top ot the tree. When I pull it over to populate the cells I get no names but when i click on the cell it highlights the proper name in the tree.
    Schema
         element
              name
         member
              lastname
              firstname
              phone
              streetaddress
              city
              state
              zipcode
              email
    Can anyone that works wirth xml in inDesign help me

    I typically get XML from a database, or an Excel sheet without the troublesome XML mapping. Once I simply received an Access database. Access spits out XML in a mostly usable state.
    I use an XML editor that converts the Excel sheet to XML, do any needed transformations, search and replaces, etc in the editor, then save it as an XML I use in ID. The editor is XML Blueprint. I often do other manipulations using UltraEdit as I have long used it for programming and am comfortable with it.
    I did a test in Excel's requisite mapping and found it so cumbersome I didn't successfully get it to export in the 20 minutes it took me to try it. I suspect I could do it with more head scratching but I don't have much hair left.
    But I'll give it another try later today or tonight and see if I can help in the way you want to go about it.
    Take care, Mike

  • I want to display the number of Passed / failed tests in Testtand xml report , please help me

    Hi, I want to display the number of Passed / failed tests in Testtand xml report , please help me.
    My requirement is later i should be able to display these number of passed/failed test in report header too.
    Solved!
    Go to Solution.

    I have attached a sequence to give you an idea of how to get the Result count (I didn't check it's working ), I have used "SequenceFilePostResultListEntry" callback to calculate the Result Count,
    and the Result Count is passed to the "ModifyReportHeader" through File Globals,  where you can edit the XML file to show it in the Repot (follow the link in my previous post).
    Hope this helps
    AshwiN,
    Attachments:
    Get Result Count.seq ‏8 KB

  • XML or Sql or ??

    Hi
    I'm developing my first app for iOS using Flashbuilder 4.6 and need to have a database to keep track of certain items, probably no more than 20 items per record (including username and password) in a single table for a single user. 
    I don't want to use server technology but want to keep the data on the device.   My question is should I use XML or SQL or some other way to store the data on the device.
    Any guidance would be appreciated.
    Thanks.

    Ok ... drop sitemesh and jmeter. So we have:
    mysql + hibernate + log4j + ant + struts + tomcat (app server) + apache (web server) running on freebsd and tested using junit.
    mysql - Half decent and free. Easy to setup.
    hibernate - Provides OR mapping. Takes a bit of learning but keep it simple and you'll be ok.
    log4j - Really easy to setup and use.
    ant - Again will take a bit of learning but once you get going you can write a basic ant script in no time (it integrates really well with eclipse)
    struts - Probably the most difficult technology to learn but it will keep your app well structured. (MVC)
    tomcat + apache - You can probably get away with just tomcat but if you've got time use the jk2 connector stuff.
    freebsd - Any unix based OS will do really.
    junit - Will look really good if you show you've properly unit tested your work. And you can integrate with junit with ant.
    How long have you got to do this btw ...

  • Generic XML to SQL translator

    We are working on a project where we need to push blobs of XML data into a DB with an unknown schema. We are looking for a tool that defines it's own XML-to-SQL protocol that would allow it to accept XML data in a format known to it and then translate it into SQL statements to store the info. Our thought is to take the data in our "internal" XML format and supply an XSL document to translate to whatever the end schema is. So if we had this data:
    <MyDataObject>
    <Member1>foo</Member1>
    <Member2>bar</Member2>
    </MyDataObject>
    the XSL would translate it into a format that the tool would understand, like:
    <Table name=DataObjects>
    <Column name=Member1>foo</Column>
    <Column name=Member2>bar</Column>
    </Table>
    the tool would then know to create an INSERT statement to add this data to the DataObjects table. The key is that we don't know the name or setup of any of the tables or columns at compile time. These may vary at each installation. It's easy to provide a new XSL translation for each install. It's harder (i.e. not feasible) to write whole new classes to match each schema.
    The normal "XML to DB" tools/architectures like Castor, Torque, and JDOs don't seem to support this sort of dynamic binding to a DB. Does anyone know of a tool that does, or do we have to write our own?
    Thanks,
    Eric

    Why don't you translate the XML directly to an SQL statement or use XSL to generate the SQL?
    Franco

  • XML to SQL (oracle) Parallel Processing Scenario

    hi,
    I have one scenario to load datas from XML to SQL but when this scenario runs in parallel duplicate information.
    I have done tests with 5 xml file these xml file have unique header_id but when run in parallel , insert 5 record in target table but one is repeat.
    the flow is the following,
    1. My scenario recieved one variable (name xml file), this variable is sent for bpel.
    2. Load datas from xml to sql(oracle), in this step I have concatenated to tables C$_, I$ and E$_ the session number how explain this link http://odiexperts.com/?p=1417.
    3. Invoke web service with status finished.
    I have tried the following.
    after of first step I set a procedure with sentence "SYNCHRONIZE schema SO from file" and modify my topology to &ro=true some time run perfect but check the target table and datas are duplicated and other time catch the error ....
    0 : null : java.sql.SQLException: class org.xml.sax.SAXException
    class java.lang.NullPointerException said null.
    Any suggestion o coment to execute my scenario in parallel?
    Thanks a lot.
    Antonio

    Please repost in the Data Integrator forum Data Integrator
    (this forum is for Data Service Integrator - an entirely different product).

  • Generate XML from SQL

    Hi I wan to create XML from SQL using XMLElement and XMLAttribute as per below Format
    *<field name="AccountNumber">TEST01</field>*
    is it possible?
    Thanks in advance
    waiting for yours positive reply

    Parth Panjabi wrote:
    Thanks in AdvanceWhy don't you open Oracle docs and read it. If you want to beautify, XMLSerialize supports INDENT:
    SQL> SELECT XMLSerialize(document
      2           XMLElement("ROWS",
      3             XMLAgg(
      4               XMLElement("ROW",
      5                 XMLElement("field",
      6                   XMLAttributes('AccountNumber' AS "name")
      7                 , ename
      8                 )
      9               , XMLElement("field",
    10                   XMLAttributes('CBAccountNumber' AS "name")
    11                 , null
    12                 )
    13               )
    14             )
    15           )
    16         )
    17  FROM EMP
    18  WHERE deptno = 10
    19  /
    XMLSERIALIZE(DOCUMENTXMLELEMENT("ROWS",XMLAGG(XMLELEMENT("ROW",XMLELEMENT("FIELD
    <ROWS><ROW><field name="AccountNumber">CLARK</field><field name="CBAccountNumber
    "></field></ROW><ROW><field name="AccountNumber">KING</field><field name="CBAcco
    untNumber"></field></ROW><ROW><field name="AccountNumber">MILLER</field><field n
    ame="CBAccountNumber"></field></ROW></ROWS>
    SQL> SELECT XMLSerialize(document
      2           XMLElement("ROWS",
      3             XMLAgg(
      4               XMLElement("ROW",
      5                 XMLElement("field",
      6                   XMLAttributes('AccountNumber' AS "name")
      7                 , ename
      8                 )
      9               , XMLElement("field",
    10                   XMLAttributes('CBAccountNumber' AS "name")
    11                 , null
    12                 )
    13               )
    14             )
    15           )
    16          INDENT
    17         )
    18  FROM EMP
    19  WHERE deptno = 10
    20  /
    XMLSERIALIZE(DOCUMENTXMLELEMENT("ROWS",XMLAGG(XMLELEMENT("ROW",XMLELEMENT("FIELD
    <ROWS>
      <ROW>
        <field name="AccountNumber">CLARK</field>
        <field name="CBAccountNumber"/>
      </ROW>
      <ROW>
        <field name="AccountNumber">KING</field>
        <field name="CBAccountNumber"/>
      </ROW>
      <ROW>
        <field name="AccountNumber">MILLER</field>
    XMLSERIALIZE(DOCUMENTXMLELEMENT("ROWS",XMLAGG(XMLELEMENT("ROW",XMLELEMENT("FIELD
        <field name="CBAccountNumber"/>
      </ROW>
    </ROWS>
    SQL>
    {code}
    SY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Buffalo Linkstation & OS 10.4 inconsistencies?

    Hello: Our Buffalo 160GB Linkstation has 3 folders: info, share, & share-mac. Some files placed into the "share" folder are arbitrarily renamed, some cannot be trashed (for no apparent reason), & some folders appear that were never created or pasted

  • Looking for a suggestion for a web site format

    Hi guys, I have a website www.ridethespiral.net It is a flash website designed to display video and photos. I bought the flash/xml template from Flashden and am pretty happy with it with the exception that it is to slow. The videos display to slow to

  • Backspace in JEditorPane on Mac OSX

    Hi, we have the problem, that the backspace key shows in a JEditorPane (HTML) some unexpected behavior running on Mac OSX with JRE 1.3.1. In the first moment after pressing the backspace key there nothing happens at all. Then suddenly the caret begin

  • OneNote 2013 throwing error: There is a problem with your account. Please try again later on Windows 8.1

    Hi I had Windows 8 installed on my corporate laptop till last week and as the OS crashed, I have re-installed the system with 8.1 and it has Office 2013 installed with my corporate ID. It is signed in Corporate credentials by default. But when I am t

  • Export to Excel codes not working as expected

    Hello, I am using the code below to export data from a query to Excel. The fields of the query are as such : D,B,C,A, but when am using the code below to export it, the order of the columns is in alphabetical order (A,B,C,D), which I don't want. Can