Reading Data From XML File to SQL Tables.

I Have XML of this type
<empdept>
<employees_marks>
<emp_id>1</emp_id>
<DIVISION_ID>BUS</DIVISION_ID>
<JOB_ID>PRE</JOB_ID>
<FIRST_NAME>SMITH</FIRST_NAME>
<LAST_NAME>JAMES</LAST_NAME>
<salary>10000</salary>
</employees_marks>
<dept>
<dept_details>
<deptid>10</deptid>
<deptname>Mechanical</deptname>
</dept_details>
<dept_details>
<deptid>20</deptid>
<deptname>Civil</deptname>
</dept_details>
<dept_details>
<deptid>30</deptid>
<deptname>ICE</deptname>
</dept_details>
</dept>
</empdept>'));
With the above format am able to retrieve data successfully into relational tables,
<employees_marks emp_id=1 DIVISION_ID=BUS JOB_ID=PRE salary=10000 />
<dept_details deptid=10 deptname='Mechanical'/>
<dept_details deptid=20 deptname='ECE'/>
<dept_details deptid=30 deptname='EEE'/>
i.e., I have data as attributes rather than elements, so can I know the way how I can acheive the requirement,
How to retrieve data when it is present as attributes rather than elements.
Thanks,
Sunil. N

Sunil N wrote:
I Have XML of this type
<dept_details deptid=10 deptname='Mechanical'/>
<dept_details deptid=20 deptname='ECE'/>
<dept_details deptid=30 deptname='EEE'/>
i.e., I have data as attributes rather than elements, so can I know the way how I can acheive the requirement,
How to retrieve data when it is present as attributes rather than elements.I just posted an example of how to deal with tags instead of elements in XML in {message:id=3935746} yesterday.
The short of it is that you need to use the "+@"+ character as the attribute name - and that tells the XML parser that the attribute is a tag in an element and not an element itself. E.g.
extract(  xmlData, '/dept_details/@deptid' ) as DEPT_ID
extract(  xmlData, '/dept_details/@deptname' ) as DEPT_NAME

Similar Messages

  • Read data from xml files and  populate internal table

    Hi.
    How to read data from xml files into internal tables?
    Can u tell me the classes and methods to read xml data..
    Can u  explain it with a sample program...

    <pre>DATA itab_accontextdir TYPE TABLE OF ACCONTEXTDIR.
    DATA struct_accontextdir LIKE LINE OF itab_accontextdir.
    DATA l_o_error TYPE REF TO cx_root.
    DATA: filename type string ,
                 xmldata type xstring .
    DATA: mr      TYPE REF TO if_mr_api.
    mr = cl_mime_repository_api=>get_api( ).
    mr->get( EXPORTING  i_url     = 'SAP/PUBLIC/BC/xml_files_accontext/xml_accontextdir.xml'
                  IMPORTING  e_content = xmldata ).
    WRITE xmldata.
    TRY.
    CALL TRANSFORMATION id
          SOURCE XML xmldata
          RESULT shiva = itab_accontextdir.
      CATCH cx_root INTO l_o_error.
    ENDTRY.
    LOOP AT itab_accontextdir INTO struct_accontextdir.
        WRITE: / struct_accontextdir-context_id,
               struct_accontextdir-context_name,
               struct_accontextdir-context_type.
        NEW-LINE.
        ENDLOOP.</pre>
    <br/>
    Description:   
    In the above code snippet I am storing the data in an xml file(you know xml is used to store and transport data ) called 'xml_accontextdir.xml' that is uploaded into the MIME repository at path 'SAP/PUBLIC/BC/xml_files_accontext/xml_accontextdir.xml'.
    The below API is used to read a file in MIME repo and convert it into a string that is stored in ' xmldata'. (This is just a raw data that is got by appending the each line of  xml file).
    mr = cl_mime_repository_api=>get_api( ).
    mr->get( EXPORTING  i_url     = 'SAP/PUBLIC/BC/xml_files_accontext/xml_accontextdir.xml'
                  IMPORTING  e_content = xmldata ).
        Once the 'xmldata' string is available we use the tranformation to parse the xml string that we have got from the above API and convert it into the internal table.
    <pre>TRY.
    CALL TRANSFORMATION id
          SOURCE XML xmldata
          RESULT shiva = itab_accontextdir.
      CATCH cx_root INTO l_o_error.
    ENDTRY.</pre>
    Here the trasnsformation 'id ' is used to conververt the source xml 'xmldata' to resulting internal table itab_accontextdir, that have same structure as our xml file 'xml_accontextdir.xml'.  In the RESULT root of the xml file has to be specified. (In my the root is 'shiva'). 
    Things to be taken care:
    One of the major problem that occurs when reading the xml file is 'format not compatible with the internal table' that you are reading into internal table.  Iin order to get rid of this issue use one more tranformation to convert the data from the internal table into the xml file.    
    <pre>TRY.
          CALL TRANSFORMATION id
            SOURCE shiv = t_internal_tab
            RESULT XML xml.
        CATCH cx_root INTO l_o_error.
      ENDTRY.
      WRITE xml.
      NEW-LINE.</pre>
    <br/>
    This is the same transformation that we used above but the differnce is that the SOURCE and RESULT parameters are changed the source is now the internal table and result is *xml *string. Use xml browser that is available with the ABAP workbench to read the xml string displayed with proper indentation. In this way we get the format of xml file to be used that is compatable with the given internal table. 
    Thank you, Hope this will help you!!!
    Edited by: Shiva Prasad L on Jun 15, 2009 7:30 AM
    Edited by: Shiva Prasad L on Jun 15, 2009 11:56 AM
    Edited by: Shiva Prasad L on Jun 15, 2009 12:06 PM

  • Reads data from xml file

    i need a procedure that reads data from xml file and stores into an oracle table.

    Hi,
    Check the below links:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:27523665852829
    http://www.experts-exchange.com/Database/Oracle/Q_20932242.html
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com

  • Reading data From XML file and setting into ViewObject to Pouplate ADF UI

    Hi,
    I have following requirement.
    I would like to read data from XML file and populate the data in ViewObject so that the data can be displayed in the ADF UI.
    Also when user modifies the data in the ADF UI, it should be modified back into to ViewObject.
    Here is an example - XML file contains Book Title and Author. I would like to read Book Title and Author from XML file and set it into ViewObject Attribute and then display Book title and Author in ADF UI page. Also when user modifies Book title and Author, I would like to store it back in View Object.
    Please help me with this requirement and let me know if any solution exist in ADF, for populating the ADF UI screen fields with external XML file data.
    Thanks

    Read chapter 42 http://download.oracle.com/docs/cd/E16162_01/web.1112/e16182/bcadvvo.htm of the fusion developer guide
    Section 42.7, "Reading and Writing XML"
    Section 42.8, "Using Programmatic View Objects for Alternative Data Sources"
    Timo

  • Failed to read data from report file Reason: The table could not be found.

    BO Enterprise XI R2, cannot publish crystal reports using the publishing wizard.
    Failed to read data from report file Reason: The table could not be found.
    Any ideas to get around this would really help out.
    Regards

    Connection used Views, ODBC System DSN is setup properly.
    Approach for import from business view manager and import wizard.  both methods failed to import the Business View and underlying reports.
    I figure I may have imported the Business View wrong? From Business View Manager I exported from my dev server then imported to prod server.
    Apparently I learned exporting my business view also includes the Data Connections that the Business Views are dependent upon.
    So which ever folder you specify it copies it there. Originally the all Data Connections Resides on the root folder. To return it to the original location. I deleted what I had exported. Exported this time to the root folder, then only deleted the business views, foundation, elements. Then exported again to the folder where I intended then only deleted the Data Connection.
    Makes any sense? So I then had to re point the business views and all the dependent objects to the data connection that resides in the root folder.
    I tested the connection, it works fine. I properly updated my crystal reports to the business view in production. Did a sample extract it works as expected.
    However when i try to publish, either from Crystal or Publish wizard i get the same error?
    As a work around i am thinking, after updating the business view in the crystal reports, shall i re map the fields?? or reexport the business views again?
    Any help will be surely appreciated.

  • Read data from XML file

    I have column (CLOB data type) with XML data in it. How to read data from that column and insert into myTable? This XML represent one report divided by Location. Every location has analytic data and total at the end.
    How to get something like this:
    bilbo bagins Total BBB (tran: 6) 12.00 13.00 14.10
    bilbo bagins Total EEE (tran: 2) 12.50 44.59 72.52
    bilbo bagins Total bilbo bagins (tran: 8) 34.89 17.85
    Data in CLOB column:
    <?xml version="1.0" encoding="UTF-8" ?>
    <CrystalReport xmlns="urn:crystal-reports:schemas:report-detail" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:crystal-reports:schemas:report-detail http://www.businessobjects.com/products/xml/CR2008Schema.xsd">
    <ReportHeader>
    <Section SectionNumber="0">
    </Section>
    </ReportHeader>
    <Group Level="1">
    <GroupHeader>
    <Section SectionNumber="0">
    <Field Name="GroupNameLocation1" FieldName="GroupName ({SubAgentSettlement.Location})"><FormattedValue>bilbo bagins</FormattedValue><Value>bilbo bagins</Value></Field>
    </Section>
    </GroupHeader>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total BBB (tran: 6)</FormattedValue><Value>Total BBB (tran: 6)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>12.00</FormattedValue><Value>12.00</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>13.00</FormattedValue><Value>13.00</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>14.10</FormattedValue><Value>14.10</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total EEE (tran: 2)</FormattedValue><Value>Total EEE (tran: 2)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>12.50</FormattedValue><Value>12.50</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>44.59</FormattedValue><Value>44.59</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>72.52</FormattedValue><Value>72.52</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="LocationGroupFooterText1" FieldName="{@LocationGroupFooterText}"><FormattedValue>Total bilbo bagins (tran: 8)</FormattedValue><Value>Total bilbo bagins (tran: 8)</Value></Field>
    <Field Name="SumofCommissionBbb2" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Location})"><FormattedValue>34.89</FormattedValue><Value>34.89</Value></Field>
    <Field Name="SumofCommissionEee2" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Location})"><FormattedValue>17.85</FormattedValue><Value>17.85</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="1">
    <GroupHeader>
    <Section SectionNumber="0">
    <Field Name="GroupNameLocation1" FieldName="GroupName ({SubAgentSettlement.Location})"><FormattedValue>Bruce Lee</FormattedValue><Value>Bruce Lee</Value></Field>
    </Section>
    </GroupHeader>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total BBB (tran: 5)</FormattedValue><Value>Total BBB (tran: 5)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>18.11</FormattedValue><Value>18.11</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>3.24</FormattedValue><Value>3.24</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>1.33</FormattedValue><Value>1.33</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total EEE (tran: 8)</FormattedValue><Value>Total EEE (tran: 8)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>10.17</FormattedValue><Value>10.17</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>7.62</FormattedValue><Value>7.62</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>1.53</FormattedValue><Value>1.53</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total UUU (transactions: 7)</FormattedValue><Value>Total UUU (transactions: 7)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>2.01</FormattedValue><Value>2.01</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>3.71</FormattedValue><Value>3.71</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>2.58</FormattedValue><Value>2.58</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="LocationGroupFooterText1" FieldName="{@LocationGroupFooterText}"><FormattedValue>Total Bruce Lee (tran: 60)</FormattedValue><Value>Total Bruce Lee (tran: 60)</Value></Field>
    <Field Name="SumofCommissionBbb2" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Location})"><FormattedValue>99.74</FormattedValue><Value>99.74</Value></Field>
    <Field Name="SumofCommissionEee2" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Location})"><FormattedValue>55.81</FormattedValue><Value>55.81</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="1">
    <GroupHeader>
    <Section SectionNumber="0">
    <Field Name="GroupNameLocation1" FieldName="GroupName ({SubAgentSettlement.Location})"><FormattedValue>Katar pipin</FormattedValue><Value>Katar pipin</Value></Field>
    </Section>
    </GroupHeader>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total BBB (tran: 5)</FormattedValue><Value>Total BBB (tran: 5)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>7.00</FormattedValue><Value>7.00</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>7.00</FormattedValue><Value>7.00</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>3.82</FormattedValue><Value>3.82</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total EEE (tran: 3)</FormattedValue><Value>Total EEE (tran: 3)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>65.50</FormattedValue><Value>65.50</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>1.75</FormattedValue><Value>1.75</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>55.50</FormattedValue><Value>55.50</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total UUU (tran: 1)</FormattedValue><Value>Total UUU (tran: 1)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>1.00</FormattedValue><Value>1.00</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>17.35</FormattedValue><Value>17.35</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>10.69</FormattedValue><Value>10.69</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="LocationGroupFooterText1" FieldName="{@LocationGroupFooterText}"><FormattedValue>Total Katar pipin (tran: 9)</FormattedValue><Value>Total Katar pipin (tran: 9)</Value></Field>
    <Field Name="SumofCommissionBbb2" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Location})"><FormattedValue>9.10</FormattedValue><Value>9.10</Value></Field>
    <Field Name="SumofCommissionEee2" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Location})"><FormattedValue>2.01</FormattedValue><Value>2.01</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="1">
    <GroupHeader>
    <Section SectionNumber="0">
    <Field Name="GroupNameLocation1" FieldName="GroupName ({SubAgentSettlement.Location})"><FormattedValue>Samsung</FormattedValue><Value>Samsung</Value></Field>
    </Section>
    </GroupHeader>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total BBB (tran: 5)</FormattedValue><Value>Total BBB (tran: 5)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>16.00</FormattedValue><Value>16.00</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>17.00</FormattedValue><Value>17.00</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>17.46</FormattedValue><Value>17.46</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="LocationGroupFooterText1" FieldName="{@LocationGroupFooterText}"><FormattedValue>Total Samsung (tran: 15)</FormattedValue><Value>Total Samsung (tran: 5)</Value></Field>
    <Field Name="SumofCommissionBbb2" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Location})"><FormattedValue>5.00</FormattedValue><Value>5.00</Value></Field>
    <Field Name="SumofCommissionEee2" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Location})"><FormattedValue>17.46</FormattedValue><Value>17.46</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="1">
    <GroupHeader>
    <Section SectionNumber="0">
    <Field Name="GroupNameLocation1" FieldName="GroupName ({SubAgentSettlement.Location})"><FormattedValue>Erica</FormattedValue><Value>Erica</Value></Field>
    </Section>
    </GroupHeader>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total BBB (tran: 5)</FormattedValue><Value>Total BBB (tran: 5)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>6.10</FormattedValue><Value>6.10</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>6.12</FormattedValue><Value>6.12</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>88.08</FormattedValue><Value>88.08</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total EEE (tran: 2)</FormattedValue><Value>Total EEE (tran: 2)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>13.00</FormattedValue><Value>13.00</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>15.87</FormattedValue><Value>15.87</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>13.00</FormattedValue><Value>13.00</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total UUU (transactions: 1)</FormattedValue><Value>Total UUU (transactions: 1)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>22.00</FormattedValue><Value>22.00</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>32.70</FormattedValue><Value>32.70</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>41.38</FormattedValue><Value>41.38</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="LocationGroupFooterText1" FieldName="{@LocationGroupFooterText}"><FormattedValue>Total Erica (tran: 8)</FormattedValue><Value>Total Erica (tran: 8)</Value></Field>
    <Field Name="SumofCommissionBbb2" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Location})"><FormattedValue>4.87</FormattedValue><Value>4.87</Value></Field>
    <Field Name="SumofCommissionEee2" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Location})"><FormattedValue>2.66</FormattedValue><Value>2.66</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <ReportFooter>
    <Section SectionNumber="0">
    <Text Name="Text11"><TextValue>Total num of tran:</TextValue>
    </Text>
    <Field Name="CountofDate1" FieldName="Count ({SubAgentSettlement.Date})"><FormattedValue>126</FormattedValue><Value>126</Value></Field>
    <Field Name="CurrencyRateLine1" FieldName="{@CurrencyRateLine}"><FormattedValue>Curr on date: 12/03/2009</FormattedValue><Value>Curr on date: 12/03/2009</Value></Field>
    <Subreport Name="Subreport1">
    <ReportHeader>
    </ReportHeader>
    <Details Level="1">
    <Section SectionNumber="0">
    <Field Name="CurrencyLine1" FieldName="{@CurrencyLine}"><FormattedValue>1 EEE = 10.12345 UUU</FormattedValue><Value>1 EEE = 10.12345 UUU</Value></Field>
    </Section>
    </Details>
    <Details Level="1">
    <Section SectionNumber="0">
    <Field Name="CurrencyLine1" FieldName="{@CurrencyLine}"><FormattedValue>1 EEE = 7.12345 BBB</FormattedValue><Value>1 EEE = 7.12345 BBB</Value></Field>
    </Section>
    </Details>
    <Details Level="1">
    <Section SectionNumber="0">
    <Field Name="CurrencyLine1" FieldName="{@CurrencyLine}"><FormattedValue>1 UUU = 6.12345 BBB</FormattedValue><Value>1 UUU = 6.123456 BBB</Value></Field>
    </Section>
    </Details>
    <ReportFooter>
    <Section SectionNumber="0">
    </Section>
    </ReportFooter>
    </Subreport>
    </Section>
    <Section SectionNumber="1">
    </Section>
    </ReportFooter>
    </CrystalReport>

    Here's a starter :
    SQL> SELECT x1.GroupName
      2       , x2.Field1
      3       , x2.Field2
      4       , x2.Field3
      5       , x2.Field4
      6  FROM my_clob_table t
      7     , XMLTable(
      8         XMLNamespaces(default 'urn:crystal-reports:schemas:report-detail'),
      9         '/CrystalReport/Group'
    10         passing xmltype(t.xml_data)
    11         columns
    12           GroupName varchar2(30) path 'GroupHeader/Section/Field/Value'
    13         , Groups    xmltype      path 'Group|GroupFooter'
    14       ) x1
    15     , XMLTable(
    16         XMLNamespaces(default 'urn:crystal-reports:schemas:report-detail'),
    17         '/Group/GroupFooter/Section|/GroupFooter/Section'
    18         passing x1.Groups
    19         columns
    20           Field1 varchar2(30) path 'Field[1]/Value'
    21         , Field2 varchar2(30) path 'Field[2]/Value'
    22         , Field3 varchar2(30) path 'Field[3]/Value'
    23         , Field4 varchar2(30) path 'Field[4]/Value'
    24       ) x2
    25  ;
    GROUPNAME          FIELD1                         FIELD2    FIELD3    FIELD4
    bilbo bagins       Total BBB (tran: 6)            12.00     13.00     14.10
    bilbo bagins       Total EEE (tran: 2)            12.50     44.59     72.52
    bilbo bagins       Total bilbo bagins (tran: 8)   34.89     17.85    
    Bruce Lee          Total BBB (tran: 5)            18.11     3.24      1.33
    Bruce Lee          Total EEE (tran: 8)            10.17     7.62      1.53
    Bruce Lee          Total UUU (transactions: 7)    2.01      3.71      2.58
    Bruce Lee          Total Bruce Lee (tran: 60)     99.74     55.81    
    Katar pipin        Total BBB (tran: 5)            7.00      7.00      3.82
    Katar pipin        Total EEE (tran: 3)            65.50     1.75      55.50
    Katar pipin        Total UUU (tran: 1)            1.00      17.35     10.69
    Katar pipin        Total Katar pipin (tran: 9)    9.10      2.01     
    Samsung            Total BBB (tran: 5)            16.00     17.00     17.46
    Samsung            Total Samsung (tran: 5)        5.00      17.46    
    Erica              Total BBB (tran: 5)            6.10      6.12      88.08
    Erica              Total EEE (tran: 2)            13.00     15.87     13.00
    Erica              Total UUU (transactions: 1)    22.00     32.70     41.38
    Erica              Total Erica (tran: 8)          4.87      2.66     
    17 rows selected

  • Read data from XML file to LabVIEW

    I am writing LabVIEW front panel objects data to an XML file using LabVIEW 6.1 VI. Now, I want to read that XML file in another VI objects. How can I do this?
    Attachments:
    test.xml ‏1 KB
    Write_to_XML.vi ‏1 KB

    LV version 6.1 has tools for both reading and writing XML files. Check the examples, you should find your answer there.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to fetch data into xml file trom sql table.

    Hi,
    We r now working in oracle 9iAS portal.
    We have installed xdk along with 9iAS.
    I would like to know how to and where to run an xsql file,preferably with an example to fetch data from a database table to a xml file.

    Please download the latest version of XDK for Java at:
    http://otn.oracle.com/tech/xml/xdk_java
    In the downloaded package, there are demos for XSQL Servlet. The demo "emp" and "empdept" are good start.

  • Extract data from xml file to Oracle table

    hello to all members of forum..i have this stored procedures:
    create or replace
    PROCEDURE INSERTXML2(
    p_xml_in XMLType,
    p_table IN VARCHAR2 ) AS
    v_context DBMS_XMLStore.ctxType;
    v_rows NUMBER;
    BEGIN
    insCtx := DBMS_XMLStore.newContext(p_table); -- get saved context
    dbms_xmlstore.setRowTag(insCtx,'Row');
    DBMS_XMLStore.clearUpdateColumnList(insCtx); -- clear the update settings
    -- set the columns to be updated as a list of values
    DBMS_XMLStore.setUpdateColumn(insCtx,'ORDERNUMBER');
    DBMS_XMLStore.setUpdateColumn(insCtx,'PLANT');
    DBMS_XMLStore.setUpdateColumn(insCtx,'MATERIAL');
    DBMS_XMLStore.setUpdateColumn(insCtx,'LINENUMBER');
    DBMS_XMLStore.setUpdatecolumn(insCtx,'NOMSPEED');
    DBMS_XMLStore.setUpdatecolumn(insCtx,'STARTDATE');
    DBMS_XMLStore.setUpdatecolumn(insCtx,'FINISHDATE');
    DBMS_XMLStore.setUpdatecolumn(insCtx,'TARGETQTY');
    DBMS_XMLStore.setUpdatecolumn(insCtx,'UNIT');
    DBMS_XMLStore.setUpdatecolumn(insCtx,'SYSTEMSTATUS');
    v_rows := DBMS_XMLStore.insertXML(insCtx, xmldocument);
    -- Close the context
    DBMS_XMLStore.closeContext(insCtx);
    END;
    that works well in little XML files but in XML files that are bigger the stored procedures to not work because string maximum length in Oracle is 4000..can anyone know a solution to pass over this problem?!?!
    one more thing im working with Oracle SQL Developer and Sap Mii, the XML file is generated in Sap Mii and then i have to pass it in one step to database..my one step is this stored procedure
    one more thing im working with Oracle SQL developer and SAP Mii
    regards and thanks in advance
    matinha
    Edited by: user11098081 on 23/Abr/2009 7:11

    You can use CLOB for big files.
    http://saubbane.blogspot.com/2010/12/saving-xml-file-into-table-with-plsql.html

  • How to ignore a node while reading data from XML file

    Hi All,
    I have a XML file that i am reading that XML file using XMLStreamReader and then i need to create another XML file that has specific nodes(from the database).
    I need to ignore nodes(with values) that are not in the database and while creating the XML file, only nodes that are it the database should be written in the new file.*
    For eg.
    <XML>
    <Stud>
    <Name>XYZ</Name>
    <Roll>1</Roll>
    <Class>1</Class>
    </Stud>
    <Stud>
    <Name>ABC</Name>
    <Roll>2</Roll>
    <Class>1</Class>
    </Stud>
    </XML>
    In database i have only two node :<Name> and <Roll>.
    So, my new XML will be
    <XML>
    <Stud>
    <Name>XYZ</Name>
    <Roll>1</Roll>
    </Stud>
    <Stud>
    <Name>ABC</Name>
    <Roll>2</Roll>
    </Stud>
    </XML>

    Hi gborges,
    Since you're new to LabVIEW, I thought I would post a few helpful links.  A great way to learn some LabVIEW basics is to look over the introductions --
    Three Hour LabVIEW Introduction Course
    Six Hour LabVIEW Introduction Course
    You might even want to think about signing up for the LabVIEW Basics I & II courses which are taught by Applications Engineers.  You can always search for KnowledgeBases and, of course, you already know about our forums!
    Happy coding,
    Megan B.
    National Instruments

  • Read data from XML file and plot graph on Ms Words

    Hi,
    I'm using Visual Studio 2010, what I want to do is written in the title.
    so far i was able read and plot graph on a Form but i unable to use the same method on Crystal Reporting.
    The method plotting in Crystal Reporting is complicated and it require a fix data set or database which is not suitable for my case because every time the number of column and row or data will be different. (this is what i think base on what i found)
    is there a way for me to display the output on a ms words?
    and what is the method.
    thanks.

    Hi Huangcongmazhananzi,
    Based on your description, I’m afraid that it is not the correct forum for this issue, since this forum is to discuss the VS IDE.
    I might not have the correct detailed answer you need, but I might lead you into the right direction to solve your problem.
    If this issue is related to the Windows Forum app, this forum would be better:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    But if it is related to the Crystal Reporting, you could post the issue here:
    http://forums.sdn.sap.com/forum.jspa?forumID=313&start=0
    is there a way for me to display the output on a ms words?
    If it is related to the Office, maybe you could select the correct forum here:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?category=officedev
    Best Regard,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Data Load from XML file to Oracle Table

    Hi,
    I am trying to load data from XML file to Oracle table using DBMS_XMLStore utility.I have performed the prerequisites like creating the directory from APPS user, grant read/write to directory, placing the data file on folder on apps tier, created a procedure ‘insertXML’ to load the data based on metalink note (Note ID: 396573.1 How to Insert XML by passing a file Instead of using Embedded XML). I am running the procedure thru below anonymous block  to insert the data in the table.
    Anonymous block
    declare
      begin
      insertXML('XMLDIR', 'results.xml', 'employee_results');
      end;
    I am getting below error after running the anonymous block.
    Error :     ORA-22288: file or LOB operation FILEOPEN failed”
    Cause :   The operation attempted on the file or LOB failed.
    Action:   See the next error message in the error stack for more detailed
               information.  Also, verify that the file or LOB exists and that
               the necessary privileges are set for the specified operation. If
               the error still persists, report the error to the DBA.
    I searched this error on metalink and found DOC ID 1556652.1 . I Ran the script provided in the document. PFA the script.
    Also, attaching a document that list down the steps that I have followed.
    Please check and let me know if I am missing something in the process. Please help to get this resolve.
    Regards,
    Sankalp

    Thanks Bashar for your prompt response.
    I ran the insert statement but encountered error,below are the error details. statement.
    Error report -
    SQL Error: ORA-22288: file or LOB operation FILEOPEN failed
    No such file or directory
    ORA-06512: at "SYS.XMLTYPE", line 296
    ORA-06512: at line 1
    22288. 00000 -  "file or LOB operation %s failed\n%s"
    *Cause:    The operation attempted on the file or LOB failed.
    *Action:   See the next error message in the error stack for more detailed
               information.  Also, verify that the file or LOB exists and that
               the necessary privileges are set for the specified operation. If
               the error still persists, report the error to the DBA.
    INSERT statement I ran
    INSERT INTO employee_results (USERNAME,FIRSTNAME,LASTNAME,STATUS)
        SELECT *
        FROM XMLTABLE('/Results/Users/User'
               PASSING XMLTYPE(BFILENAME('XMLDIR', 'results.xml'),
               NLS_CHARSET_ID('CHAR_CS'))
               COLUMNS USERNAME  NUMBER(4)    PATH 'USERNAME',
                       FIRSTNAME  VARCHAR2(10) PATH 'FIRSTNAME',
                       LASTNAME    NUMBER(7,2)  PATH 'LASTNAME',
                       STATUS  VARCHAR2(14) PATH 'STATUS'
    Regards,
    Sankalp

  • How to read the data from XML file and insert into oracle DB

    Hi All,
    I have below require ment.
    I will receive data in the XML file. then i need to read that data and insert into oracle tables. please let me know how this can be handled.
    Many Thanks.

    Sounds a lot like this question, only with less details.
    how to read data from XML  variable and insert into table variable
    We can only help if you provide us details to help as we cannot see what you are doing and only know what you tell us.  Plenty of examples abound on the forums that cover the topics you seek as well.

  • Dynamic Internal Table for reading data from external file

    Hello All,
    The task was to create a internal table with dynamic columns,
    Actually this is my first task in the WebAS 6.20, my program is based on input file provided by user with certain effort. this file can have different effort for a one yr to five year frame..
    I needed to read the raw data from file, based on months create a internal table to hold the data, after this i need to validate the data...
    I have browsed thru dynamic internal table topic, but couldn't find any dynamic appending structure, the dynamic structure would contains 12 month fileds.
    can any one help me in getting my task completed..
    Thanks
    Kumar

    Hi,
    I see that you posted the same question a couple of days ago at Dynamic Internal Table for reading data from external file Didn't Charles's response address your problem?
    Regards

  • Reading Data from Unix file and write into an Internal table

    Dear all,
                     I am having an requirement of reading data from unix file and write the same into an internal table..how to do that ...experts please help me in this regard.

    Hi,
    do like this
    PARAMETERS: p_unix LIKE rlgrap-filename OBLIGATORY.
    DATA: v_buffer(2047) TYPE c.
    DATA: BEGIN OF i_buffer OCCURS 0,
            line(2047) TYPE c,
    END OF i_buffer.
    * Open the unix file..
    OPEN DATASET p_unix FOR INPUT IN TEXT MODE.
    <b>IF sy-subrc NE 0.
    *** Error Message "Unable to open file.
    ELSE.</b>
       DO.
         CLEAR: v_buffer.
         READ DATASET p_unix INTO v_buffer.
         IF sy-subrc NE 0.
            EXIT.
         ENDIF.
         MOVE v_buffer TO i_buffer.
         APPEND i_buffer.
      ENDDO.
    ENDIF.
    CLOSE DATASET p_unix.
    <b>Reward points if it helps,</b>
    Satish

Maybe you are looking for

  • Opening RAW images in Camera Raw

    I owned a Nikon D80 and use Photoshop CS3.  I have used this program for years opeing my RAW images in the Camera Raw 4.0.  I just purchased a new Nikon D90 and now I can not open the RAW files in Photoshop at all.  Any suggestions?  Thanks, Debbie

  • Createdb10.sql with error "ORACLE not available"

    guys.. I have installed PeopleTools 8.49 and PeopleSoft HRMS 9. I installed Oracle 11gR1 on OEL 5.3 I create /oradata/DEMO111/create by my self. I modified file createdb10.sql set termout on set echo on spool createdb.log startup nomount pfile=$ORACL

  • How to perform converstaion implementation using JAX-WS

    Dears; I have two products which comunicate by using web services, Application 'A' sends to Application 'B', the current implementaion is that this web method accepts three parameter: Username, password, and the data payload as a third parameter. The

  • PSE will not install on my PC

    When I install the 1st disc for my 32 bit machine. It goes as far at Data 7 then backs out of the install and fails to complete the installation.

  • 10g on openVMS

    Hello, Does anyone know if and when 10G becomes available on OpenVMS? Are there already requirements available? Thanx Michel Lentelink