Skip to main content.
home | support | download

Back to List Archive

XML attributes

From: Roy Tennant <roy.tennant(at)not-real.ucop.edu>
Date: Thu Sep 30 2004 - 23:53:57 GMT
I realize this is without a doubt a stupid question, but I've plowed 
through the documentation and the list archive and I'm still confused.

I have docs like this:

<site url="http://somewhere.com/">
       <more_stuff>ljljk</more_stuff>
</site>

My conf looks like this:

IndexOnly .x
IndexContents XML* .x
UndefinedXMLAttributes index
MetaNames site.url more_stuff
PropertyNames site.url more_stuff

but when I "swish-e -w more_stuff=ljljk -x "<site.url>\n" -f my.index" 
I don't get what I'm looking for. Clearly I don't understand how 
attributes are handled. All I'm need to do is to return the value of 
the attribute in the search results. Thanks,
Roy
Received on Thu Sep 30 16:54:34 2004