[xquery-talk] navigating xml file in breadth first ,
depth first guided search in xquery
fatma helmy
fatmahelmy2000 at yahoo.com
Wed Jun 7 04:32:00 PDT 2006
suppose i have this xml file
<bookstore>
<book id="1" >
<title>seven years in trenton</title>
<price>12</price>
</book>
<book id="1" >
<title>history of trenton</title>
<price>55</price>
</book>
<book id="2" >
<title>trenton today, trenton tomorrow</title>
<price>55</price>
<author> </author>
</book>
</bookstore>
i need to generate an xml file that contains the most
frequent elements based on breadth and depth first .
for example, i need to get all desendants of book,
which are title, price, author (breadth first) , i
would exclude author sine its count is less than 2,
aftre this step, i need to form a line in an xml file
that contains book/price , book/title and then unfold
book/title and book/price individually preserving the
full path name.
can xquery do something like that?
we used to implementing breadth and depth by
converting trees into string, would xquery be efficient?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the talk
mailing list