Hello Guys,

 

I would like to search an XML file by an Attribute of an element and the
result I get should be the element and its contents only. 

For e.g.:

File : My.xml

<bookstore>

                <book lang="English">Learning XQuery </book>

                <book lang="French">French Culture</book>

                <book lang="Italian">Italian Food</book>

</bookstore>

 

Now when I search for attribute "English"  the result I get should be like
this

 

"<book lang="English">Learning XQuery </book>" only and not the entire XML
file. 

 

I tried a query using a combination of cts:search, cts:and-query,
cts:element-attribute-value-query and I get the entire XML file as a result
which is not necessary for me. I just need only the element and its
contents.

 

Thanks in advance,

Jamin

 

 

 

 

 

 

                

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

Reply via email to