How to INSERT XML data into Oracle database

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default How to INSERT XML data into Oracle database

    Hi,
    Working on a solution where we are using XML as a means to export and import
    various
    data. Are Using ADO to save to (export ) XML using adPersistXML and then
    XSL to convert to an element-based XML.

    Is there an easy way to INSERT data from an element-based XML into ONE
    database-table in oracle, preferable using ADO.

    XML has form
    <root>
    <importdata>
    <element1>data</element1>
    .........
    <elementN>data</elementN>
    </importdata>
    </root>

    Thanks in advance.
    Stein


    news.online.no Guest

  2. Similar Questions and Discussions

    1. Using Flash to insert data into a MS Access database
      Hi, first of all I am using Flash MX 2004 and have Office 2003. I am trying to use my flash form to insert data into a ms access database but it...
    2. Oracle error=917 when trying to insert into database
      I get the following error when I try to insert into table - Oracle Error Code = 917 ORA-00917: missing comma SQL = "INSERT INTO...
    3. how to insert data into database from flashform
      i have create checkbox in flash form, but i can't use the same name for each value, so i make it cb1, cb2, how should i write the sql statement for...
    4. how to insert data into database
      i already make a form and database with access...and now i want to know how the data will insert automatically into the database...another one, how...
    5. insert data into database
      :confused; Please help, I haven't got a clue what I am doing. I have a page that I wish people to enter data then submit it to a Microsoft SQL...
  3. #2

    Default Re: How to INSERT XML data into Oracle database


    "news.online.no" <stein-a4@online.no> wrote in message
    news:jxrxb.1952$Y06.26328@news4.e.nsc.no...
    > Hi,
    > Working on a solution where we are using XML as a means to export and
    import
    > various
    > data. Are Using ADO to save to (export ) XML using adPersistXML and
    then
    > XSL to convert to an element-based XML.
    >
    > Is there an easy way to INSERT data from an element-based XML into
    ONE
    > database-table in oracle, preferable using ADO.
    >
    > XML has form
    > <root>
    > <importdata>
    > <element1>data</element1>
    > ........
    > <elementN>data</elementN>
    > </importdata>
    > </root>
    >
    > Thanks in advance.
    > Stein
    >
    >
    What version of Oracle are you using? You should be able to accomplish
    this using XML SQL Utilities (XSU) which has been available since 8i.
    You may also be able to use the XQuery prototype available in 9i.
    Finally, you could always convert the data back to ADOXML using XSL,
    then load the resulting ADOXML as a recordset and update. You may want
    to consider posting this question to an Oracle newsgroup. They can
    provide more details on XSU/XQuery. Oracle Technology Network is also a
    great resource.

    HTH
    -Chris Hohmann


    Chris Hohmann Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139