dbTalk Databases Forums  

XML Functions

comp.databases.postgresql comp.databases.postgresql


Discuss XML Functions in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Soral42
 
Posts: n/a

Default XML Functions - 08-04-2010 , 11:32 PM






Hi,

I'm in the process of converting a LAMP AJAX website from MySQL to
PostgreSQL. I'm having trouble finding resources regarding XML
manipulation in pl/pgsql. Specifically, I'm trying to do the following
(provided as MySQL code):
SET vEmail = ExtractValue(pDetailsXML,'/userdetails/email');
which returns a single value from a specified node, and
SET pNewDetailsXML =
UpdateXML(pDetailsXML,'/userdetails/email',CONCAT('<email>',vEmail,'</email>'));
which replaces a specified node in the XML (and assigns the new XML to a
different variable).

Any URLs or sample code would be appreciated.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.