Precompilers and OCI (MOSC)

MOSC Banner

XML processing in pro * c

edited Apr 22, 2009 11:00PM in Precompilers and OCI (MOSC) 7 commentsAnswered
 Hi,

A) I have created the table like the following:

create table PurchaseOrders
(id number primary key,
xmlpo xmltype); 

I have stored the following as a string called str in Pro*C:

 EXEC SQL BEGIN DECLARE SECTION;
 char str[30000000];
 EXEC SQL END DECLARE SECTION;

<?xml version="1.0"?>
<purchaseOrder orderDate="1999-10-20">
  <shipTo country="US">
    <name>Alice Smith</name>
    <street>123 Maple Street</street>
    <city>Mill Valley</city>
    <state>CA</state>
    <zip>90952</zip>
  </shipTo>
  <billTo country="US">
    <name>Robert Smith</name>
    <street>8 Oak Avenue</street>
    <city>Old Town</city>
    <state>PA</state>
    <zip>95819</zip>
  </billTo>
  <comment>Hurry, my lawn is going wild!</comment>

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center