If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Help with Db2 XML Extender!!!!!!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-27-04, 03:37
satish_nath satish_nath is offline
Registered User
 
Join Date: Dec 2003
Posts: 6
Help with Db2 XML Extender!!!!!!!

Thanks in advance for looking into my post.

The XML document is stored in a table (XMLCOLUMN) and column (XMLDOC) of datatype XMLVarChar. Iam trying to use the path shown below to update, it says there is
a syntax error occurred near position "29" in
the se". SQLSTATE=38X09


db2 "Update XMLCOLUMN set XMLDOC =db2xml.Update(XMLDOC, '/Account/Statement[@StmtDate = "2003-10-01" ]/BilledAmt ', '15.5')"


<Account AcctNum="3">
<AcctHolder>
<AcctName>RANI</AcctName>
<PhoneNum>123456</PhoneNum>
</AcctHolder>
<Statement StmtDate="10/01/2003">
<BilledAmt>15.5</BilledAmt>
</Statement>
<Statement StmtDate="11/01/2003">
<BilledAmt>16.5</BilledAmt>
</Statement>
</Account>
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On