Please forgive me if this is my XPATH inexperience, but I'm feeding
documents into a collection, and then am unable to access them via XPATH,
either "xindice xpath" command line, or code (from Example1).

I have documents like this in a collection:

<feed ...
    <link
    <entry...
        <link ...

and I have tried queries like:

    //feed
    //feed/entry
    //link[rel='alternate']

.. and I get 0 results. I do //* and I get bucket loads (and out of memory
in Eclipse) which is understandable, I guess.


F:\data\OSS>xindice xpath -c /db/atom -q "//link[rel='alternate']"
[DEBUG] DatabaseImpl - -Using SAX Driver: 'xerces'
[DEBUG] DatabaseImpl - -Using Service Location: '/xindice/'
[DEBUG] CollectionImpl - -Using URL: 'http://127.0.0.1:8888/xindice/'

No results. Also:

F:\data\OSS>xindice xpath -c /db/atom -q //feed
[DEBUG] DatabaseImpl - -Using SAX Driver: 'xerces'
[DEBUG] DatabaseImpl - -Using Service Location: '/xindice/'
[DEBUG] CollectionImpl - -Using URL: 'http://127.0.0.1:8888/xindice/'

gives debug looking like:

[DEBUG] Collection - -[PoolThread-4] '/db/atom' Query collection, query
//feed
[DEBUG] Collection - -[PoolThread-4] '/db/atom' Get document:
00ffa7c06645793300
0000fa3f3918c3
 [...]
[DEBUG] Collection - -[PoolThread-4] '/db/atom' Get document:
00ffa7c06645793300
0000fa4111471c

... and nothing else.

I think I'm just downloading the XML and stuffing it in the DB, when I
printed the contents they looked sure right.

So, any pointers on how I debug this? Am I missing some indexing or
something, can I get inside this problem with code or tools or debug config?

Thanks in advance for any pointers. [P.S. I did an eyebrowse search, but
nothing jumped out at me.]

regards,

Adam
--
Experience the Unwired Enterprise:
http://www.sybase.com/unwiredenterprise
Try Sybase: http://www.try.sybase.com

Reply via email to