You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by "Mark J. Stang" <ma...@earthlink.net> on 2001/12/30 22:14:49 UTC

XPath searches and attributes

Hi,
Does anyone have a sample xpath search using an attribute?

thanks,

Mark


Re: XPath searches and attributes

Posted by "Mark J. Stang" <ma...@earthlink.net>.
Tom,
I haven't tried the command-line yet, I know I will at some point,
so far everything is programmatic.   I was wondering if the xpath
syntax was different then the regular syntax.   From your example,
it looks like it is.   I think I may have to change my parser.

Currently, I am using something like:

select 'repairorder' from repairorders where 'concern' contains 'brake'.

I think I will need something like:

select 'repairorder' from repairorders where attribute 'concern' contains
'brake'.

I don't think I have the xpath url on my website, do you have it?

thanks,

Mark

Tom Bradford wrote:

> On Sunday, December 30, 2001, at 02:14 PM, Mark J. Stang wrote:
> > Does anyone have a sample xpath search using an attribute?
>
> Mark,
>
> Command-line or programmatic?   If you're having problems with the
> command line, it's probably because you're using Windows, and because
> the Windows command line "sucks".  The work around would be to quote
> your query appropriately.
>
> xindice xpath -c /db/mycollection -q "root[@attr='yadda']"
>
> Something like that should work.
>
> --
> Tom Bradford - http://www.tbradford.org
> Chief Architect - The dbXML Group, L.L.C.
> Developer - Apache Xindice (formerly dbXML)
> Maintainer - jEdit-Syntax Java Editing Bean
> Co-Author - O'Reilly's "Learning Xindice"


Re: XPath searches and attributes

Posted by Tom Bradford <br...@dbxmlgroup.com>.
On Sunday, December 30, 2001, at 02:14 PM, Mark J. Stang wrote:
> Does anyone have a sample xpath search using an attribute?

Mark,

Command-line or programmatic?   If you're having problems with the 
command line, it's probably because you're using Windows, and because 
the Windows command line "sucks".  The work around would be to quote 
your query appropriately.

xindice xpath -c /db/mycollection -q "root[@attr='yadda']"

Something like that should work.

--
Tom Bradford - http://www.tbradford.org
Chief Architect - The dbXML Group, L.L.C.
Developer - Apache Xindice (formerly dbXML)
Maintainer - jEdit-Syntax Java Editing Bean
Co-Author - O'Reilly's "Learning Xindice"