doglin82
June 4th, 2009, 01:58 AM
<DIV id="sst">
<UL class="sst_queries">
<LI>
<DIV id="124011420">
<DIV class="sst_time">12:40PM</DIV>
<DIV class="sst_query">
<A onmousedown="return si_T('&ID=SERP,158')" href="http://www.bing.com/search?q=dog&FORM=O1HV">dog</A>
<A class="sst_del" onmousedown="return si_T('&ID=SERP,161')" href="http://www.bing.com/history.aspx?dl=0&d=20090603&dlt=128885316114200000&ig=ac152ac9227649ac8ee7d525d6aa6e6a&FORM=ZZHV">x
</A>
</DIV>
</DIV>
<UL class="sst_clicks">
<LI>
<A onmousedown="return si_T('&ID=SERP,148')" href="http://www.dog.com/"><STRONG>Dog</STRONG> Supplies, <STRONG>Dog</STRONG> Beds, Toys & Treats - <STRONG>Dog</STRONG>.com
</A>
<A class="sst_del" onmousedown="return si_T('&ID=SERP,151')" href="http://www.bing.com/history.aspx?dl=0&d=20090603&dlt=128885319380930000&ig=ac152ac9227649ac8ee7d525d6aa6e6a&uh=199f8d38895a9fed11a7&FORM=ZZHV2">x</A>
<DIV class="sst_clickurl">
<A onmousedown="return si_T('&ID=SERP,148')" href="http://www.dog.com/">www.dog.com/</A>
</DIV>
</LI>
<LI>
<A onmousedown="return si_T('&ID=SERP,153')" href="http://en.wikipedia.org/wiki/Dog"><STRONG>Dog</STRONG> - Wikipedia, the free encyclopedia</A>
<A class="sst_del" onmousedown="return si_T('&ID=SERP,156')" href="http://www.bing.com/history.aspx?dl=0&d=20090603&dlt=128885319351500000&ig=ac152ac9227649ac8ee7d525d6aa6e6a&uh=ecfe497f524c4a1845f2&FORM=ZZHV3">x
</A>
<DIV class="sst_clickurl">
<A onmousedown="return si_T('&ID=SERP,153')" href="http://en.wikipedia.org/wiki/Dog">en.wikipedia.org/wiki/Dog</A>
</DIV>
</LI>
</UL>
</LI>
</UL>
</DIV>
XPathNavigator nav = doc.CreateNavigator();
the query i used is
/DIV/UL/LI/UL[@class='sst_clicks']
XPathNodeIterator it = nav.SelectChildren("/DIV/UL/LI/UL[@class='sst_clicks']", "");
However, it is not selecting the nodes. Please let me know what I did wrong.
Thanks,
<UL class="sst_queries">
<LI>
<DIV id="124011420">
<DIV class="sst_time">12:40PM</DIV>
<DIV class="sst_query">
<A onmousedown="return si_T('&ID=SERP,158')" href="http://www.bing.com/search?q=dog&FORM=O1HV">dog</A>
<A class="sst_del" onmousedown="return si_T('&ID=SERP,161')" href="http://www.bing.com/history.aspx?dl=0&d=20090603&dlt=128885316114200000&ig=ac152ac9227649ac8ee7d525d6aa6e6a&FORM=ZZHV">x
</A>
</DIV>
</DIV>
<UL class="sst_clicks">
<LI>
<A onmousedown="return si_T('&ID=SERP,148')" href="http://www.dog.com/"><STRONG>Dog</STRONG> Supplies, <STRONG>Dog</STRONG> Beds, Toys & Treats - <STRONG>Dog</STRONG>.com
</A>
<A class="sst_del" onmousedown="return si_T('&ID=SERP,151')" href="http://www.bing.com/history.aspx?dl=0&d=20090603&dlt=128885319380930000&ig=ac152ac9227649ac8ee7d525d6aa6e6a&uh=199f8d38895a9fed11a7&FORM=ZZHV2">x</A>
<DIV class="sst_clickurl">
<A onmousedown="return si_T('&ID=SERP,148')" href="http://www.dog.com/">www.dog.com/</A>
</DIV>
</LI>
<LI>
<A onmousedown="return si_T('&ID=SERP,153')" href="http://en.wikipedia.org/wiki/Dog"><STRONG>Dog</STRONG> - Wikipedia, the free encyclopedia</A>
<A class="sst_del" onmousedown="return si_T('&ID=SERP,156')" href="http://www.bing.com/history.aspx?dl=0&d=20090603&dlt=128885319351500000&ig=ac152ac9227649ac8ee7d525d6aa6e6a&uh=ecfe497f524c4a1845f2&FORM=ZZHV3">x
</A>
<DIV class="sst_clickurl">
<A onmousedown="return si_T('&ID=SERP,153')" href="http://en.wikipedia.org/wiki/Dog">en.wikipedia.org/wiki/Dog</A>
</DIV>
</LI>
</UL>
</LI>
</UL>
</DIV>
XPathNavigator nav = doc.CreateNavigator();
the query i used is
/DIV/UL/LI/UL[@class='sst_clicks']
XPathNodeIterator it = nav.SelectChildren("/DIV/UL/LI/UL[@class='sst_clicks']", "");
However, it is not selecting the nodes. Please let me know what I did wrong.
Thanks,