Hi..!

 

How can we write an Xquery function to find the documents (XML documents
with different structures) that have the word "fruit" in them either as
an element or attribute? 

 

For example say Doc1 has the following content

 

<root>

<Category>fruit</Category>

<name>Apple</name>

</root>

 

Doc2 has the following content

 

<root>

<name category="fruit">Apple</name>

</root>

 

Both the documents should be selected as the first document has "fruit"
as element and second document has "fruit" as an attribute.

 

Thanks in advance.

 

Regards,

Pradeep Maddireddy

 

 

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

Reply via email to