Hi, 

 

I have an xml like follows and my database contains just one document
with similar tags. 

 

<Root>

<title>cook1

<Category count ="1" >wine and beer, wine and water </category

<Category count ="2" >this is a sample document </category>

</title>

<title>cook2

<Category count ="1" >party and cocktail</category>

<2title>

<title>cook3

<Category count ="1" >wine</category>

</title>

</root>

 

I would like to use "search: search" function and get following the
string term "wine".    . 

 

1.  Total number of the matches found in number of <title> tags. 

     In this example, although the "wine" appears twice in the <title>
"Cook1", it should be counted as 1 and it should return only two
search:result nodes. I set <max-matches> to 1 control this.    

     But I need to find out how many such matches exist in entire
document.  Is there way to find this out without traversing through the
entire search:result ? 

    

2.  Along with the search:snippet   I always want to display the  value
of the <title> tag  inside with search:result along with search:snippet.
How can I do this ?

 

 

Thank you,

--Joshil


---------------------------------------------------------------------------------------------

This message, including any attachments, contains confidential information 
intended for a specific individual and purpose, and is intended for the 
addressee only. Any unauthorized disclosure, use, dissemination, copying, or 
distribution of this message or any of its attachments or the information 
contained in this e-mail, or the taking of any action based on it, is strictly 
prohibited. If you are not the intended recipient, please notify the sender 
immediately by return e-mail and delete this message.

---------------------------------------------------------------------------------------------
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to