I am trying create a XQuery to generate a following details of the xml tag used with the no. of occurrence
Book- 3 occurrence Article-2 occurrence conference - 1 occurrence
Is this possible? i've been trying but it does not work
<test>
<book>
<year>1992</year>
....
</book>
<article>
<year>1992</year>
....
</article>
<conference>
<year>1992</year>
....
</conference>
<article>
<year>1992</year>
....
</article>
<book>
<year>1992</year>
....
</book>
<book>
<year>1992</year>
....
</book>
</test>