xml, xpath,postgres 9.1

Поиск
Список
Период
Сортировка
Искать

xml, xpath,postgres 9.1

От:
caracan <antelo_d@hotmail.com>
Дата:
Hello everybody, sorry for my english.
I need to extract the xml: lat, lon and ele.  The xml I have it save on a
table (gpx.object_value). For the first two works for me:

SELECT (xpath ('//lat ', gpx.object_value)) [i] FROM gpx
SELECT (xpath ('//lon ', gpx.object_value)) [i] FROM gpx

My question is how do  ? Probe of everything:
'./trk/trkseg/trkpt/ele/text()'
'//ele'
'//ele/text()'
'//*[//ele]'

Please,help me.
TKANKS

Information:
postgres(postgis),eclipse,jsp

INSERT INTO gpx(object_name, object_value) VALUES ('t1.gpx',
cast(pg_read_file('t1.gpx', 0, 1000000) As xml));

Document xml:
- 
- 
- 
- 
20.2


- 
FAQ