|
Re: [HACKERS] xpath not a good replacement for xpath_string: msg#01870pgsql-hackers
pgsql@xxxxxxxxxxxxxx wrote: Sorry to bring this up, I know you've been fighting about XML for a while. This is really a usage question, which doesn't belong on -hackers. However, here is how to do what you want: andrew=# select (xpath($$/com.company.local.myclass/uuid/text()$$,$$<com.company.local.myclass> <uuid>b5212259-a91f-4dca-a547-4fe89cf2f32c</uuid> <email>joe@xxxxxxxxxxxxxx</email> </com.company.local.myclass> $$::xml))[1]::text as uuid; uuid -------------------------------------- b5212259-a91f-4dca-a547-4fe89cf2f32c (1 row) cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |