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

Similar Messages

  • 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

  • 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

  • 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 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

  • 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

  • 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.

  • 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.

  • LPX-00601: Invalid token in: err while trying to read data from xml

    Hey ,
    While trying to read data from xml i got err:
    LPX-00601: Invalid token in: 'path'
    the proc. i'm using to read data from the xml is:
    procedure read_xml_file_test (in_filename in varchar2)
    is
    my_dir  varchar2(20) := 'XML_DIR;
      cur_emp2 number:=0;
      l_bfile   BFILE;
      l_clob    CLOB;
      l_parser  dbms_xmlparser.Parser;
      l_doc     dbms_xmldom.DOMDocument;
      l_nl      dbms_xmldom.DOMNodeList;
      l_nl2    dbms_xmldom.DOMNodeList;
      l_n       dbms_xmldom.DOMNode; 
      l_n2     dbms_xmldom.DOMNode;
      l_temp    VARCHAR2(1000);
    v_errors        internet_clients.errors%type; 
    src_csid       NUMBER := NLS_CHARSET_ID('UTF8'); 
    dest_offset    INTEGER := 1;
    src_offset     INTEGER := 1;
    lang_context   INTEGER := dbms_lob.default_lang_ctx;
    warning        INTEGER;
    v_count       number := 0;   --total records
    v_count_s      number := 0;   -- sucsess record
    v_count_f      number := 0;   -- failed record
    v_flag varchar2(1);
    v_char2 varchar2(1);
    v_l1 VARCHAR2(255);
    v_l2 VARCHAR2(255);
    v_l3 VARCHAR2(255);
    v_l4 VARCHAR2(255);
    v_l6 VARCHAR2(255);
    BEGIN
      l_bfile := BFileName(my_dir, in_filename);
      dbms_lob.createtemporary(l_clob, cache=>FALSE);
      dbms_lob.open(l_bfile, dbms_lob.lob_readonly);
      dbms_lob.loadclobfromfile(l_clob, l_bfile, dbms_lob.getlength(l_bfile), dest_offset,src_offset, src_csid, lang_context, warning);                        
      dbms_lob.close(l_bfile);
      -- make sure implicit date conversions are performed correctly
      dbms_session.set_nls('NLS_DATE_FORMAT','''DD/MM/RR HH24:MI:SS''');   
      -- Create a parser.
      l_parser := dbms_xmlparser.newParser;
      -- Parse the document and create a new DOM document.
        dbms_xmlparser.parseClob(l_parser, l_clob);
        l_doc := dbms_xmlparser.getDocument(l_parser);
      -- Free resources associated with the CLOB and Parser now they are no longer needed.
      dbms_lob.freetemporary(l_clob);
      dbms_xmlparser.freeParser(l_parser);  
      -- Get a list of all the  nodes in the document using the XPATH syntax.
      l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'soap:Envelope/soap:Body/GetFieldsNameResponse/GetFieldsNameResult/diffgr:diffgram/DataSet_FRM_GANERIC_PROP/FRM_GANERIC_PROP');
      -- Loop through the list and create a new record in a tble collection
      -- for each  record.
      FOR cur_emp IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
       l_n := dbms_xmldom.item(l_nl, cur_emp);
       cur_emp2:=0;
       loop
         v_count := v_count + 1;
         begin
        -- Use XPATH syntax to assign values to he elements of the collection.
        dbms_xslprocessor.valueOf(l_n,'L1/text()',v_l1);
        dbms_xslprocessor.valueOf(l_n,'L2/text()',v_l2);
        dbms_xslprocessor.valueOf(l_n,'L3/text()',v_l3);
        dbms_xslprocessor.valueOf(l_n,'L4/text()',v_l4);
        dbms_xslprocessor.valueOf(l_n,'L6/text()',v_l6);
            exception
      when others then 
      null;
      end;
    exit when cur_emp2=dbms_xmldom.getLength(l_nl2);
      END LOOP;
      end loop;
      -- Free any resources associated with the document now it
      -- is no longer needed.
      dbms_xmldom.freeDocument(l_doc);
      --remove file to another directory   
          --COMMIT;  -- do not use the commit if you want to run this proc. from within the search_dir_list proc , because it execute a select from tmp table dir_list which contain a "on commit delete rows"  clause.    
      /*EXCEPTION
      /*WHEN OTHERS THEN
       dbms_lob.freetemporary(l_clob);
        dbms_xmlparser.freeParser(l_parser);
       dbms_xmldom.freeDocument(l_doc);
        null;
        ROLLBACK; */
    END;While trying to execute this i got:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in: 'soap:Envelope/soap:Body/GetFieldsNameResponse/GetFieldsNameResult/diffgr:diffgram/DataSet_FRM_GANERIC_PROP/FRM_GANERIC_PROP'
    ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 939
    ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 967
    ORA-06512: at "MARKET.READ_XML_FILE_TEST", line 51
    ORA-06512: at line 1
    i guess i mised somthing at the line
    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'soap:Envelope/soap:Body/GetFieldsNameResponse/GetFieldsNameResult/diffgr:diffgram/DataSet_FRM_GANERIC_PROP/FRM_GANERIC_PROP');i attached here part of my xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <soap:Body>
    - <GetFieldsNameResponse xmlns="http://tempuri.org/">
    - <GetFieldsNameResult>
    - <xs:schema id="DataSet_FRM_GANERIC_PROP" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    - <xs:element name="DataSet_FRM_GANERIC_PROP" msdata:IsDataSet="true" msdata:Locale="he-IL">
    - <xs:complexType>
    - <xs:choice minOccurs="0" maxOccurs="unbounded">
    - <xs:element name="FRM_GANERIC_PROP">
    - <xs:complexType>
    - <xs:sequence>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      </xs:choice>
      </xs:complexType>
      </xs:element>
      </xs:schema>
    - <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    - <DataSet_FRM_GANERIC_PROP xmlns="">
    - <FRM_GANERIC_PROP diffgr:id="FRM_GANERIC_PROP1" msdata:rowOrder="0">
      <L1>val1</L1>
      <L2>val2</L2>
      <L3>val3</L3>
      <L4>val4</L4>
      <L6>val6</L6>
      </FRM_GANERIC_PROP>
      </DataSet_FRM_GANERIC_PROP>
      </diffgr:diffgram>
      </GetFieldsNameResult>
      </GetFieldsNameResponse>
      </soap:Body>
      </soap:Envelope>I Guess it somthing that have to do with node definition ,
    but i have tried so many combinations and none ot those worked for me.
    i'm deeply stuck here.
    What do i miss here?
    THANKS yair
    Edited by: yair_k on 02:30 14/10/2010

    Hey , after got a lot of success with the xml reading part , i wonder if you
    can help me with a problem while trying to reading that xml from a web service.
    i use a procedure as followes:
    FUNCTION read_from_web_service(in_username in varchar2 , in_password in varchar2)
      RETURN CHAR
    AS
      l_service          UTL_DBWS.service;
      l_call             UTL_DBWS.call;
      l_a_ns                     VARCHAR2(32767);
      l_wsdl_url         VARCHAR2(32767);
      l_namespace        VARCHAR2(32767);
      l_service_qname    UTL_DBWS.qname;
      l_port_qname       UTL_DBWS.qname;
      l_operation_qname  UTL_DBWS.qname;
      l_xmltype_in       SYS.XMLTYPE;
      l_xmltype_out      SYS.XMLTYPE;
      l_return           VARCHAR2(32767);
    BEGIN
      l_wsdl_url        := 'http://www.company.com/publisherService/ServiceGetpublisherTable.asmx?wsdl';
      l_namespace       := 'http://tempuri.org/';
      l_service_qname   := UTL_DBWS.to_qname(l_namespace, 'ServiceGetpublisherTable');
      l_port_qname      := UTL_DBWS.to_qname(l_namespace, 'ServiceGetpublisherTableSoap');
      l_operation_qname := UTL_DBWS.to_qname(l_namespace, 'GetFieldsName');
      l_service := UTL_DBWS.create_service (
        wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
        service_name           => l_service_qname);
      l_call := UTL_DBWS.create_call (
        service_handle => l_service,
        port_name      => l_port_qname,
        operation_name => l_operation_qname);
      l_xmltype_in := SYS.XMLTYPE('<?xml version="1.0" encoding="utf-8"?>
        <GetFieldsName xmlns="' || l_namespace || '">
        <user>' || in_username || '</user>
        <password>'|| in_password || '</password>
        </GetFieldsName>');
      l_xmltype_out := UTL_DBWS.invoke(call_Handle => l_call,
                                       request     => l_xmltype_in);
      UTL_DBWS.release_call (call_handle => l_call);
      UTL_DBWS.release_service (service_handle => l_service);
      l_return := l_xmltype_out.extract('//GetFieldsName/text()').getstringVal();
       dbms_output.put_line(l_return);     
      RETURN l_return;
    END;but when i run it i got message:
    ORA-29532: Java call terminated by uncaught Java exception: javax.xml.rpc.soap.SOAPFaultException: Server did not recognize the value of HTTP Header SOAPAction: .
    regarding the line:
    l_xmltype_out := UTL_DBWS.invoke(call_Handle => l_call,
    request => l_xmltype_in);
    So , i deeply stuck here!
    my web service description is:
      <?xml version="1.0" encoding="utf-8" ?>
    - <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    - <wsdl:types>
    - <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
    - <s:element name="GetFieldsName">
    - <s:complexType>
    - <s:sequence>
      <s:element minOccurs="0" maxOccurs="1" name="user" type="s:string" />
      <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
      </s:sequence>
      </s:complexType>
      </s:element>
    - <s:element name="GetFieldsNameResponse">
    - <s:complexType>
    - <s:sequence>
    - <s:element minOccurs="0" maxOccurs="1" name="GetFieldsNameResult">
    - <s:complexType>
    - <s:sequence>
      <s:element ref="s:schema" />
      <s:any />
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:sequence>
      </s:complexType>
      </s:element>
    - <s:element name="GetMSG_ByUser_Not_Readed">
    - <s:complexType>
    - <s:sequence>
      <s:element minOccurs="0" maxOccurs="1" name="user" type="s:string" />
      <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
      </s:sequence>
      </s:complexType>
      </s:element>
    - <s:element name="GetMSG_ByUser_Not_ReadedResponse">
    - <s:complexType>
    - <s:sequence>
    - <s:element minOccurs="0" maxOccurs="1" name="GetMSG_ByUser_Not_ReadedResult">
    - <s:complexType>
    - <s:sequence>
      <s:element ref="s:schema" />
      <s:any />
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:sequence>
      </s:complexType>
      </s:element>
    - <s:element name="SetMSG_ByUser_Not_Readed_As_Readed">
    - <s:complexType>
    - <s:sequence>
      <s:element minOccurs="0" maxOccurs="1" name="user" type="s:string" />
      <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
      <s:element minOccurs="0" maxOccurs="1" name="Rec_Id" type="s:string" />
      </s:sequence>
      </s:complexType>
      </s:element>
    - <s:element name="SetMSG_ByUser_Not_Readed_As_ReadedResponse">
    - <s:complexType>
    - <s:sequence>
      <s:element minOccurs="1" maxOccurs="1" name="SetMSG_ByUser_Not_Readed_As_ReadedResult" type="s:boolean" />
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:schema>
      </wsdl:types>
    - <wsdl:message name="GetFieldsNameSoapIn">
      <wsdl:part name="parameters" element="tns:GetFieldsName" />
      </wsdl:message>
    - <wsdl:message name="GetFieldsNameSoapOut">
      <wsdl:part name="parameters" element="tns:GetFieldsNameResponse" />
      </wsdl:message>
    - <wsdl:message name="GetMSG_ByUser_Not_ReadedSoapIn">
      <wsdl:part name="parameters" element="tns:GetMSG_ByUser_Not_Readed" />
      </wsdl:message>
    - <wsdl:message name="GetMSG_ByUser_Not_ReadedSoapOut">
      <wsdl:part name="parameters" element="tns:GetMSG_ByUser_Not_ReadedResponse" />
      </wsdl:message>
    - <wsdl:message name="SetMSG_ByUser_Not_Readed_As_ReadedSoapIn">
      <wsdl:part name="parameters" element="tns:SetMSG_ByUser_Not_Readed_As_Readed" />
      </wsdl:message>
    - <wsdl:message name="SetMSG_ByUser_Not_Readed_As_ReadedSoapOut">
      <wsdl:part name="parameters" element="tns:SetMSG_ByUser_Not_Readed_As_ReadedResponse" />
      </wsdl:message>
    - <wsdl:portType name="ServiceGetpublisherTableSoap">
    - <wsdl:operation name="GetFieldsName">
      <wsdl:input message="tns:GetFieldsNameSoapIn" />
      <wsdl:output message="tns:GetFieldsNameSoapOut" />
      </wsdl:operation>
    - <wsdl:operation name="GetMSG_ByUser_Not_Readed">
      <wsdl:input message="tns:GetMSG_ByUser_Not_ReadedSoapIn" />
      <wsdl:output message="tns:GetMSG_ByUser_Not_ReadedSoapOut" />
      </wsdl:operation>
    - <wsdl:operation name="SetMSG_ByUser_Not_Readed_As_Readed">
      <wsdl:input message="tns:SetMSG_ByUser_Not_Readed_As_ReadedSoapIn" />
      <wsdl:output message="tns:SetMSG_ByUser_Not_Readed_As_ReadedSoapOut" />
      </wsdl:operation>
      </wsdl:portType>
    - <wsdl:binding name="ServiceGetpublisherTableSoap" type="tns:ServiceGetpublisherTableSoap">
      <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="GetFieldsName">
      <soap:operation soapAction="http://tempuri.org/GetFieldsName" style="document" />
    - <wsdl:input>
      <soap:body use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
    - <wsdl:operation name="GetMSG_ByUser_Not_Readed">
      <soap:operation soapAction="http://tempuri.org/GetMSG_ByUser_Not_Readed" style="document" />
    - <wsdl:input>
      <soap:body use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
    - <wsdl:operation name="SetMSG_ByUser_Not_Readed_As_Readed">
      <soap:operation soapAction="http://tempuri.org/SetMSG_ByUser_Not_Readed_As_Readed" style="document" />
    - <wsdl:input>
      <soap:body use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
    - <wsdl:binding name="ServiceGetpublisherTableSoap12" type="tns:ServiceGetpublisherTableSoap">
      <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="GetFieldsName">
      <soap12:operation soapAction="http://tempuri.org/GetFieldsName" style="document" />
    - <wsdl:input>
      <soap12:body use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap12:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
    - <wsdl:operation name="GetMSG_ByUser_Not_Readed">
      <soap12:operation soapAction="http://tempuri.org/GetMSG_ByUser_Not_Readed" style="document" />
    - <wsdl:input>
      <soap12:body use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap12:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
    - <wsdl:operation name="SetMSG_ByUser_Not_Readed_As_Readed">
      <soap12:operation soapAction="http://tempuri.org/SetMSG_ByUser_Not_Readed_As_Readed" style="document" />
    - <wsdl:input>
      <soap12:body use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap12:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
    - <wsdl:service name="ServiceGetpublisherTable">
    - <wsdl:port name="ServiceGetpublisherTableSoap" binding="tns:ServiceGetpublisherTableSoap">
      <soap:address location="http://www.company.com/publisherService/ServiceGetpublisherTable.asmx" />
      </wsdl:port>
    - <wsdl:port name="ServiceGetpublisherTableSoap12" binding="tns:ServiceGetpublisherTableSoap12">
      <soap12:address location="http://www.company.com/publisherService/ServiceGetpublisherTable.asmx" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>also i have to mention that i have changed publisher references inside the code , and i also canot
    supply username and password , so i guess you canot test it. still i not shure if my definitions (namespace est.) inside my code defined correctly.
    hope you can help me with this.
    regards
    yair

  • Hi, extract data from xml file and insert into another exiting xml file

    i am searching code to extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    1st xml file which has two lines(text1.xml)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xs:PrintDataRequest xmlns:xs="http://com.unisys.com/Anid"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    <xs:Person>
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    These two lines has to be inserted in the existing another xml(text 2.xml) file(at line 3 and 4)
    Regards,
    bubbly

    Jadz_Core wrote:
    RandomAccessFile? If you know where you want to insert it.Are you sure about this? If using this, the receiving file would have to have bytes inserted that exactly match the number of bytes replaced. I'm thinking that you'll likely have to stream through the second XML with a SAX parser and copy information (or insert new information) as you stream with an XML writer of some sort.

  • Extract data from xml file and insert into another exiting xml fil

    hello,
    i am searching extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    Regards,
    Zhuozhi

    If the files are small, you can load the target file in a DOM document, insert the data from the source file and persist the DOM.
    If the files are large, you probably want to use a StAX or SAX.

  • Extract data from XML file to Oracle database

    Dear All
    Please let me know, how to extract data from XML file to Oracle database which includes texts & images.
    Thanking You
    Regards Lakmal Marasinghe

    I would do it from the database, but then again, I am a database / PL/SQL guy.
    IMHO the database will deliver you with more options. I don't know about "speed" between the two.

  • Storing data from XML files in Oracle DB

    Hi!
    I just started to work with XML and need to save data from XML files into Oracle database. I tried to run sample from Oracle web site. The code was following:
    public class xmlwritedb
    public static void main(String args[]) throws SQLException
    String tabName = "EMP"; // Table into which to insert XML data
    String fileName = "emp.xml"; // XML document filename
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Initialize a JDBC connection
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:oci8:scott/tiger@");
    // Insert XML data from file (filename) into
    // database table (tabName)
    OracleXMLSave save = new OracleXMLSave(conn, tabName);
    URL url = save.createURL(fileName);
    int rowCount = save.insertXML(url);
    System.out.println(" successfully inserted "+rowCount+
    " rows into "+ tabName);
    conn.close();
    But it does not work.
    OracleXMLSave object does not see file name.
    Please, help me solve this problem. Also,where is it possible to find any documentation on oracle.xml.* classes API.
    Thank you.
    Maya.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by sudeepk:
    If a java exception is thrown probably during ur install u might have forgotten
    grant javauserpriv to scott;
    grant javasyspriv to scott;
    Thanks
    [email protected]
    <HR></BLOCKQUOTE>
    Thank you!!!

  • Read info from xml file

    HI All,
             I task to read the data from XML file and and assign to variable in batch script.Can any one help me how can I do this
    Samar

    Here you go:
    @echo off
    for /F %%a in (d:\test.xml) do echo %%a | find /i "var=" && set var=%%a
    It is extremely unlikely that this batch file will do what you want it to do but in the absence of any details in your post I was forced to use crystal ball gazing techniques. Seriously - if someone asked
    you how to do the job, what would
    you tell him? There is no room for guesswork in scripting!

Maybe you are looking for

  • Approach for Inter Organisational BPM

    Hi All, I am doing Masters Dissertation in Collaborative BPM. My research topic is the evaluation of three approached for collaborating BPM across value chain. Explanation of these approaches: Centralise CBPM: Ownership of Collaborative System is wit

  • Battery symbol on my TP

    No device Hello! I'm having a problem with my touch. There is a battery symbol with a lightning bolt and it doesn't want to charge. Also I found out where the battery is and it "pops" out but doesn't come out completely from the TP How do i slide it

  • Belgium Accounting Documents

    This is the request: There is a statutory requirement in Belgium that accounting documents be in sequential order with no gaps.  However, the SAP solution installed at the Belgium Engine Center follows existing accounting document number range config

  • IP Telephony Implementation check list

    Dear Pros, I am in the process of implementing the ip telephony project. The following products are used in this project. 1. Cisco MCS78251 2. Cisco callmanager4.1 3. Cisco unity 4. Cisco 1760 voice gateway 5. cisco catalyst 3560-48-PS-s 6. Cisco CP-

  • How to turn off autocapitalize on iPad

    How can I turn off autocapitalization on iPad.?