DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: xml File

  1. #1
    Join Date
    Apr 2001
    Posts
    21

    xml File

    Can xml files be parsed and inserted into tables in Oracle.

  2. #2
    Join Date
    Jan 2003
    Location
    Hull, UK
    Posts
    220
    theres an XMLType column in Oracle 9i, if the column is defined as XMLTYpe u can insert the XML documents into it...

  3. #3
    Join Date
    Jan 2003
    Location
    Hull, UK
    Posts
    220
    this shuld work....

    create table XMLTable (ord_id number, xml_data XMLType);

    insert into XMLTable values (1,
    XMLType('

    1
    saddfdass

    '));

  4. #4
    Join Date
    Jan 2003
    Location
    Hull, UK
    Posts
    220
    sorry didnt print properly in my last post...

    PHP Code:
    insert into XMLTable values (1
    PHP Code:
    XMLType('<ORDERDETAILS> 
    PHP Code:
    <ORDER
    PHP Code:
    <ORDNO>1</ORDNO
    PHP Code:
    <ITEM>saddfdass</ITEM
    PHP Code:
    </ORDER
    PHP Code:
    </ORDERDETAILS>')); 

Posting Permissions

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


Click Here to Expand Forum to Full Width