Getting incorrect result with XQuery?

ninnaftTils

New Member
Below is the XMl File -\[code\]<Chapters> <Chapter n="1"> <Desc>....</Desc> <References> <BookRef>HTML : in 21 Days</BookRef> <Page>12, 13</Page> <BookRef>HTML : Unlimited</BookRef> <Page>21, 22</Page> <BookRef>The Complete Reference - HTML</BookRef> <Page>32-35</Page> </References> </Chapter> <Chapter n="2"> <Desc>....</Desc> <References> <BookRef>HTML : in 21 Days</BookRef> <Page>52, 53</Page> <BookRef>The Complete Reference - HTML</BookRef> <Page>132-145</Page> <BookRef>The Complete Reference - Javascript</BookRef> <Page>132-145</Page> </References> </Chapter></Chapters> \[/code\]I am trying to list - all the containing \[code\]HTML\[/code\] word using\[code\]/Chapters/Chapter/References[BookRef contains text 'HTML']/BookRef\[/code\]But all are being displayed...!! What will be the XQuery to retrieve the same?
 
Back
Top