Hi,
I have following two xmls,
\test\catalog.xml
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
</book>
<book id="bk102">
<author>Ralls, Kim</author>
<title>Midnight Rain</title>
</book>
</catalog>
\ test\catalognew.xml
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
</book>
<book id="bk103">
<author>Corets, Eva</author>
<title>Oberon's Legacy</title>
</book>
</catalog>
While I use the set operations intersect, difference, union on book tags of
these two xmls I am not getting the desire output. I was expecting a result
set which contain the book tag with id “bk101” while doing an intersection
operation. I tried in the following way which gave me the empty sequence as
result
let $a := doc("\test\catalog.xml")/catalog/book
let $b := doc("\test\catalognew.xml")/catalog/book
return
$a intersect $b
Please let me know if I can achieve the desired output sequences using set
operations
Thanks & Regards
Mahitha
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general