How to populate data from XML to SQLserver 2008

Hi 
I have following XML file data. I need to create table in sql sever and load the data. I dont know how to read and load the file located at C:Drive.
Please kindly help me on loading the data into table
This is what I see in the file located on C drive - invoiceXML: 
<?xml version="1.0" encoding="utf-8"?>
<CLinv xmlns="http://www.sdfsfdfsfd.com">
  <billCom xmlns="">billCom1</billCom>
  <remittance xmlns="">
    <remCom>remCom1</remCom>
  </remittance>
  <summary xmlns="">
    <title>title1</title>
    <TBAmt>1</TBAmt>
    <totalNC>1</totalNC>
    <accountAging>
      <past3DAm>1</past3DAm>
      <tPDe>1</tPDe>
    </accountAging>
    <items>
      <item>
        <itNo>1</itNo>
        <NC>1</NC>
      </item>
      <item>
        <itNo>23</itNo>>
        <NC>23</NC>
      </item>
      <item>
        <itNo>34</itNo>
        <NC>34</NC>
      </item>
    </items>
  </summary>
  <GrpDet xmlns="">
    <detailGrouping>
      <grouping>grouping1</grouping>
      <details>
        <detail>
          <CNo>CNo1</CNo>
          <Namtt>1</Namtt>
        </detail>
        <detail>
          <CNo>CNo2</CNo>
          <Namtt>23</Namtt>
        </detail>
        <detail>
          <CNo>CNo3</CNo>
          <Namtt>34</Namtt>
        </detail>
      </details>
    </detailGrouping>
    <detailGrouping>
      <grouping>grouping2</grouping>
      <details>
        <detail>
          <CNo>CNo4</CNo>
          <Namtt>0.9</Namtt>
        </detail>
        <detail>
          <CNo>CNo5</CNo>
          <Namtt>1.1</Namtt>
        </detail>
        <detail>
          <CNo>CNo6</CNo>
          <Namtt>23</Namtt>
        </detail>
      </details>
    </detailGrouping>
    <detailGrouping>
      <grouping>grouping3</grouping>
      <details>
        <detail>
          <CNo>CNo7</CNo>
          <Namtt>34</Namtt>
        </detail>
        <detail>
          <CNo>CNo8</CNo>
          <Namtt>0.8</Namtt>
        </detail>
        <detail>
          <CNo>CNo9</CNo>
          <Namtt>1.2</Namtt>
        </detail>
      </details>
    </detailGrouping>
  </GrpDet>
</CLinv>

Sorry This is the correct Data:
<?xml version="1.0" encoding="utf-8"?>
<CLinv xmlns="http://www.sdfsfdfsfd.com">
  <billCom xmlns="">billCom1</billCom>
  <remittance xmlns="">
    <remCom>remCom1</remCom>
  </remittance>
  <summary xmlns="">
    <title>title1</title>
    <TBAmt>1</TBAmt>
    <totalNC>1</totalNC>
    <accountAging>
      <past3DAm>1</past3DAm>
      <tPDe>1</tPDe>
    </accountAging>
    <items>
      <item>
        <itNo>1</itNo>
        <NC>1</NC>
      </item>
      <item>
        <itNo>23</itNo>>
        <NC>23</NC>
      </item>
      <item>
        <itNo>34</itNo>
        <NC>34</NC>
      </item>
    </items>
  </summary>
  <GrpDet xmlns="">
    <detailGrouping>
      <grouping>grouping1</grouping>
      <details>
        <detail>
          <CNo>CNo1</CNo>
          <Namtt>1</Namtt>
        </detail>
        <detail>
          <CNo>CNo2</CNo>
          <Namtt>23</Namtt>
        </detail>
        <detail>
          <CNo>CNo3</CNo>
          <Namtt>34</Namtt>
        </detail>
      </details>
    </detailGrouping>
    <detailGrouping>
      <grouping>grouping2</grouping>
      <details>
        <detail>
          <CNo>CNo4</CNo>
          <Namtt>0.9</Namtt>
        </detail>
        <detail>
          <CNo>CNo5</CNo>
          <Namtt>1.1</Namtt>
        </detail>
        <detail>
          <CNo>CNo6</CNo>
          <Namtt>23</Namtt>
        </detail>
      </details>
    </detailGrouping>
    <detailGrouping>
      <grouping>grouping3</grouping>
      <details>
        <detail>
          <CNo>CNo7</CNo>
          <Namtt>34</Namtt>
        </detail>
        <detail>
          <CNo>CNo8</CNo>
          <Namtt>0.8</Namtt>
        </detail>
        <detail>
          <CNo>CNo9</CNo>
          <Namtt>1.2</Namtt>
        </detail>
      </details>
    </detailGrouping>
  </GrpDet>
</CLinv>

Similar Messages

  • How to populate data from table into datagrid in form

    hi there. may i know how to populate data from a table into a datagrid? i have created a datagrid in a form using OLE's microsoft datagrid. i'm having problem to populate data from table into the grid. can i know how to do that? thanks

    Not exactly. I want to enter input from form and the user can have all options to choose i.e. HIGH, MEDIUM or so on.
    Suppose, you have option to select HIGH, MEDIUM or LOW and you can see all these options together. You select LOW and when you save, it is saves in the table as a value. So when you view the table again, it will show LOW as active and HIGH and MEDIUM are null.

  • How to extract data from XML file with JavaScript

    HI All
    I am new to this group.
    Can anybody help me regarding XML.
    I want to know How to extract data from XML file with JavaScript.
    And also how to use API for XML
    regards
    Nagaraju

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

  • How to extract data from xml and insert into Oracle table

    Hi,
    I have a large xml file. which will have hundreds of the following transaction tags having column names and there values.
    There is a table one of the schema with coulums "actualCostRate","billRate"....etc.
    I need to extract the values of these columns and insert into the table
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuUK" chargeCode="LCOCD1" externalID="L-RESCODE_UK1-PROJ_UK_CNT_GBP-37289-8" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-12" transactionType="L" units="11" taskID="5017601" inputTypeCode="SALES" groupId="123" voucherNumber="ABCVDD" transactionClass="ABCD"/>
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuEU" chargeCode="LCOCD1" externalID="L-RESCODE_US1-PROJ_EU_STD2-37291-4" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-04" transactionType="L" units="4" taskID="5017601" inputTypeCode="SALES" groupId="124" voucherNumber="EEE222" transactionClass="DEFG"/>

    Re: Insert from XML to relational table
    http://www.google.ae/search?hl=ar&q=extract+data+from+xml+and+insert+into+Oracle+table+&btnG=%D8%A8%D8%AD%D8%AB+Google&meta=

  • How to populate data from dynamic drop down list to the text field

    Hi,
    I tried to populate data from dynamic drop down list to city field. I would like to concat data from drop down list.When selecting add button to add the item and select item from drop down list, data should be displayed in the text field. However, Please help. I spent alot of time to make it works I am not successful.
    Please see the link below.
    https://acrobat.com/#d=SCPS0eVi6yz13ENV0cnUdw
    Thanks for your help
    Cindy

    Hi Rosalin,
    Loop the hidden table, get the values and populate drop down in each iteration.
    DropDownList1.addItem("Text","Value");
    You can use one more solution for this scenario. If it is a matter of 2,3 dropdowns, put three dropDowns in the form layout and give seperate static data binding to them. At run time make the dropDowns hide/visible as per the requirement.
    Hope this helps.
    Thanks & Regards,
    Sanoosh

  • How to fetch data from XML and store it in internal table

    Hi All,
    Can anyone help me out, in fetching data from xml and store it in an internal table. Is there any standard function module is there?
    Regards,
    Karthick

    to do this you can either develop a XSLT program and use it with CALL TRNSFORMATION key word to tranform the XML into itab .
    (search the ABAP General forum, i have posted few samples)
    or simply use the following FM which converts your XML into a itab of name value pair (name would holw the element name and value would hold the value of the element) which you can then loop and read it to your itb.
    data:             xmldata type xstring .
    data: result_xml type standard table of smum_xmltb .
    data: return type standard table of bapiret2 .
    CALL FUNCTION 'SMUM_XML_PARSE'
      EXPORTING
        xml_input       = xmldata
      TABLES
        xml_table       = result_xml
        return          = return .
    Regards
    Raja

  • How to retrive data from .XML file to JMS

    hi friends.. this is vamsi from india.. i have been working on jsp, java bean, xml, jms, message driven bean , ejb and database from last couple of days. but i am not able to retrieve data from fields in xml file to jms. can any one help me out in retrieving the data from xml to jms..
    thanking you,
    vamsi.

    Database but we are not able to retrieve the values
    from XML to JMS."We are not able to" is too vague a statement. An answer to this could well be "Did you turn your computer on?"
    So again, please post formatted code showing what you have done and where you are stuck.
    Perhaps an error message and/or a stack trace if appropriate.

  • How to retrieve data from XML

    I have a scenario where I need to read data from database of xmltype (data type)
    Table Structure :
    Create table Ex_Tb (id number(30),emp_data XMLType );
    I can save xml content in database,
    Sample
    insert into Ex_Tb values( 1, xmltype ('<?xml version="1.0" encoding="UTF-8" ?><userdata><uniqueid>54321</uniqueid><name>moorthi</name><age>25</age><city>Chennai</city></userdata>'));
    Data inserted .
    When retrieved from DB I see the data in the generated BO as given below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ExteOutputCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/pcbpel/adapter/db/Exte file:/C:/JDeveloper/mywork/Application1/Project1/xsd/Exte.xsd" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/Exte">
    <ExteOutput>
    <SDD_XML_REQ_DATA_GETCLOBVAL__><?xml version="1.0" encoding="UTF-8" ?><userdata><uniqueid>54321</uniqueid><name>moorthi</name><age>25</age><city>Chennai</city></userdata></SDD_XML_REQ_DATA_GETCLOBVAL__>
    </ExteOutput>
    </ExteOutputCollection>
    My Question :
    1. How to retrive values of individual tags contained within the embedded XML so that it can be mapped to a BO?
    Basically I would like to map uniqueId, name,age,city from xml to a BO.
    Rgds,
    Krishna

    Hi Krishna,
    I'm not sure but are you selecting the data from the XMLType column as given in the section Using XMLType in an SQL Statement in the below doc?
    http://docs.oracle.com/cd/B10500_01/appdev.920/a96620/xdb04cre.htm#1030582
    Regards,
    Neeraj Sehgal

  • How to populate data from bol to assignment block.

    Dear experts,
    I saw on sdn discussion similar questions, but have not found the suitable answer.
    I need to add fields for BP using EEWB and to work with this field in WEB UI. For achievement of it I have executed following steps:
    1. Using EEWB has added new z u2013 fields to BP. This fields have appeared in tcode bp on a tab "customer data".  Besides I have seen this field in created z u2013 BOL.
    2. Using tcode BSP_WD_CMPWB has created z bsp component.
    3. In z bsp component has created view and custom controller which correspond earlier created z - BOL. Also has created following binding:
       owner->do_context_node_binding(
                iv_controller_type  = cl_bsp_wd_controller=>CO_TYPE_CUSTOM
                iv_name = 'ZBP_S_INF/NumBpOutSYS'
                iv_target_node_name = 'ZZ9BHEEW'
                iv_node_2_bind      = ZZ9BHEEW ).
    4. Has redefined method DO_PREPARE_OUTPUT and would make modify the *.htm file for the purpose on toolbar there were buttons of editing of the data.
    5. Has adding z - assignment block to bp_head component.
    At start WEB UI the assignment block it is visible in list displayed blocks of account data. In this block there are buttons on toolbar. But in this block the data is not displayed. Though really data there is, as they are displayed in tcode bp.
    Please inform as to populate the data from bol to z u2013 component. I assume that it is necessary for me to create get_ methods. But methods get_ and set_ do not cause query.
    Iu2019m work in CRM 7.0.
    Best regards,
    Eugene.

    HI, Prasenjit
    Here the text my html pages
    <%@page language="abap" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <thtmlb:areaFrameSetter toolbarButtons  = "<%= controller->gt_button_header %>"
                            maxButtonNumber = "3"
                            displayMode     = "<%= controller->view_group_context->is_view_in_display_mode( controller ) %>" />
    <chtmlb:configTable actionsMaxInRow       = "3"
                        allRowsEditable       = "TRUE"
                        displayMode           = "<%= controller->view_group_context->is_view_in_display_mode( controller ) %>"
                        downloadToExcel       = "TRUE"
                        id                    = "Table1"
                        onRowSelection        = "select"
                        personalizable        = "TRUE"
                        selectedRowIndex      = "<%= ZZ9BHEEW->SELECTED_INDEX %>"
                        selectedRowIndexTable = "<%= ZZ9BHEEW->SELECTION_TAB %>"
                        selectionMode         = "<%= ZZ9BHEEW->SELECTION_MODE %>"
                        table                 = "//ZZ9BHEEW/Table"
                        usage                 = "EDITLIST"
                        visibleFirstRow       = "<%= ZZ9BHEEW->VISIBLE_FIRST_ROW_INDEX
    %>"
                        visibleRowCount       = "6"
                        width                 = "100%"
                        xml                   = "<%= controller->configuration_descr->get_config_data( ) %>" />
    Whether the page can html operate extraction of the data?

  • How to extract data from xml file in owb 10.2?

    I have to load data from an xml file into a relational table , may i know how to do it in owb 10.2.

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

  • How to extract data from xml file and store that data inti data base table

    Hii All
    I have one table that table contains one column that column contain an XML file
    I want to extract data from that XML file and want to store that extracted data into an other table.
    That xml file has different different values
    I want to store that values into table in diff diff columns

    Hi,
    I am also facing the same problem.I have a .xml file and i need to import the data into the custom table in oracle database.
    Can you please let me know if you know the solution how to do it in oracle apps.
    Thanks,

  • How to retrieve data from xml file into obiee reports

    Hi all,
    I've got a situation here. A xml file is stored as blob in oracle database table. Now i need to retrieve data/info from that xml file into obiee reports. How am i supposed to proceed with this ?

    I will go for a table function:
    http://gerardnico.com/wiki/database/oracle/table_function
    In two words, you can create a function that behave as a table. Then you create a function to pick up your xml, you parse it and you send back the rows.
    I know that Oracle has also a library for XML files but I never use it until now.
    Success
    Nico

  • How to load data from XML DOM into tables using Business Components

    <p>
    Hi,
    </p>
    <p>
    I need to upload XML file (it&#39;s not a problem) an load data (DOM tree) from this file into relationan tables. This filelooks like this:
    </p>
    <p>
    <font face="courier new,courier" size="2">&lt;Departments&gt;
       &lt;Department&gt;
          &lt;DepartmentName&gt;OPERATIONS&lt;/DepartmentName&gt;
          &lt;Localization&gt;BOSTON&lt;/Localization&gt;
          &lt;Employees&gt;
             &lt;Employee&gt;
                &lt;LastName&gt;TURNER&lt;/LastName&gt;
                &lt;Job&gt;SALESMAN&lt;/Job&gt;
                &lt;Manager&gt;7698&lt;/Manager&gt;
                &lt;HireDate&gt;1981-09-08&lt;/HireDate&gt;
                &lt;Salary&gt;1500&lt;/Salary&gt;
                &lt;Commerce&gt;0&lt;/Commerce&gt;
             &lt;/Employee&gt;
          &lt;/Employees&gt;
       &lt;/Department&gt;
    &lt;/Departments&gt;</font>
    </p>
    <p>
    Is there any Business Components support to obtain this ? What about primary and foreign keys values (there is no in XML file). How to place this XML data in appropriate tables ?
    </p>
    <p>
    Kuba 
    </p>

    Pl post details of exact OS and database versions, along with a sample of the XML file and description of the tables. What have you tried so far ?
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_control_file.htm#i1005614
    HTH
    Srini

  • How to store data from xml in oracle database

    Hello All
    Could anyone tell me ways of storing XML in Oracle and whats the best one in terms of performance issues.
    any URL to this q/s would be great.
    thanks
    kedar

    Ben,
    The following link as some information regarding DOM API and XSQL.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:2923508047773696280::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:17309127931717
    For XML DB, you may want to create an XMLSchema and build a table off the schema definition. Then use WEBDAV to load the xml into a folder (ie object table) Once the xml is in the database you could build a view for a relational look at the data.
    Example from XMLDB Techical White Paper doc.
    create or replace view PURCHASEORDER_MASTER_VIEW
    (reference, requestor, userid, costcenter,...)
    as select extractValue(Value(p),'/PurchaseOrder/Reference'),
    extractValue(value(p),'/PurchaseOrder/Requestor'),
    extractValue(value(p),'/PurchaseOrder/User'),
    extractValue(value(p),'/PurchaseOrder/CostCenter'),...
    from PURCHASEORDER p

  • How to populate data from table into Radio button group in Form 10g

    Hi,
    I have a table with 2 columns, i.e. criteria and weight.
    The weight column will contain either 5 or 4 or 3.
    I want to design a form (10g) as follows:
    CRITERIA----------------------------WEIGHT------------------
    ------------------------HIGH----------MEDIUM-------------LOW
    Cost-------------------o
    Duration-------------------------------o
    Maintenance-------------------------o
    If the criteria contains 5, it will show as HIGH, MEDIUM for 4, LOW for 3.
    Do I need one radio group for each CRITERIA column?
    How can I populate the table and display as above programatically in the form?
    Edited by: srtusar on 26-Mar-2009 04:49
    Edited by: srtusar on 26-Mar-2009 06:48

    Not exactly. I want to enter input from form and the user can have all options to choose i.e. HIGH, MEDIUM or so on.
    Suppose, you have option to select HIGH, MEDIUM or LOW and you can see all these options together. You select LOW and when you save, it is saves in the table as a value. So when you view the table again, it will show LOW as active and HIGH and MEDIUM are null.

Maybe you are looking for

  • How do I correct random audio pops in Premiere Elements 13?

    Please help me with this audio issue! I hear occasional pops (skipped words, not smooth narration) in my edit. I shot the footage with a Rode video mic, but have not had this problem with this microphone before, and furthermore the pops appear not on

  • MM03 - Adding extra Field in Existing Screen

    Requirement is : MM03---Select view --Basic Data -- Additional Data (On Application tool bar) --- Additional Ean tab.  In Additional EAN tab there are  6 fields already available , i need to add one more field.. a) I checked for user exits , Badi's a

  • Where is the best place to download Histogram equalizers

    I found out on cs5 there is a histogram equalizer with in hdr toning...I also found out that there are plugins for histogram qualizers. I did download one called kamflex it was ok but it was noisy. From my learned friends on this site can you recomme

  • Anti spam filter Mail Issue

    No mail arrived to 10.6.6 Mail Server after enabling "zen.spamhaus.org" spam filter. I can send to any, but receive only from local domain. And after disabling the filter, I can receive smoothly from all domain. My server is not blacklisted and it's

  • 3070A will not print in black

    Have the same problem with black not printing. Original cartridge, but unit is out of warranty. Tried 3 different cartridges and tried everything suggested on forums. I am in South Africa. Can you help? Kind regards Jeff