Skip to main content.
home | support | download

Back to List Archive

Re: xml tag in index file.

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Mon Feb 21 2005 - 14:36:27 GMT
On Mon, Feb 21, 2005 at 02:42:41AM -0800, Carmelo Carchedi wrote:
> How I can see xml tag in index file?
> 
> If i index a file like:
> ---------------------------
> <tag1>
> some text
> <tag2>other text</tag2>
> 
> 
> </tag1>
> ---------------------------
> 
> I want to see with option -x "<tag1>"
> some text
> <tag2>other text</tag2>
> 
> Is it possible?


No.  Swish only saves the text elements of the document, not the tags.

moseley@laptop:~$ cat c
DefaultContents xml2
PropertyNames tag1

moseley@laptop:~$ cat test.xml
<tag1>
some text
<tag2>other text</tag2>


</tag1>

moseley@laptop:~$ swish-e -c c -i test.xml -T properties -v0
          swishdocpath: 6 (  8) S: "test.xml"
          swishdocsize: 8 (  4) N: "52"
     swishlastmodified: 9 (  4) D: "2005-02-21 07:31:33 MST"
                  tag1:10 ( 20) S: "some text other text"


-- 
Bill Moseley
moseley@hank.org

Unsubscribe from or help with the swish-e list: 
   http://swish-e.org/Discussion/

Help with Swish-e:
   http://swish-e.org/current/docs
   swish-e@sunsite.berkeley.edu
Received on Mon Feb 21 06:36:35 2005