Menu

#3 XPath Query on root-Element

open
nobody
None
5
2002-12-06
2002-12-06
Anonymous
No

I have a collection on xindice like this:

db/event_base/events

If i do a XPath-query on any element other than the root
element on the documents, all works fine.
example: /event[@id='000001']/description[@type='short']

Doing almost the same ting, but requesting the hole
document doesn't work.
example: /event[@id='000001']

parameters are:
$query = "/event[@id='$timetable_array[id]']/description
[@type='short']";
$type = "XPath";
$docCollection = "/db/event_base/events";
$qryResponse = queryCollection($server, $port,
$docCollection, $type, $query);

Frank

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.