Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Bes XPath query? >Thread Next - Re: Bes XPath query? Re: Bes XPath query?To: NULL Date: 5/8/2009 7:43:00 AM On May 8, 5:45=A0am, Martin Honnen <mahotr...@yahoo.de> wrote: > CxT wrote: > > Hi, > > > I need to be able to find the value (5.56) in the td that is a > > sibling > > of the "Earnings/Share" td. =A0I'm not sure how I go about using XPath > > to search for that specific string. > > Any guidance would be much appreciated. > > CxT > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <table> > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <tr> > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <td>Beta</td> > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <td class=3D"cl1">1.66<= /td> > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 </tr> > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <tr> > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <td>Dividend & Yiel= d</td> > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <td class=3D"cl1">NA</t= d> > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 </tr> > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <tr> > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <td>Earnings/Share</td> > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <td class=3D"cl1">5.56<= /td> > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 </tr> > > =A0 =A0//table/tr[td[. =3D 'Earnings/Share']]/td[@class =3D 'cl1'] > -- > > =A0 =A0 =A0 =A0 Martin Honnen > =A0 =A0 =A0 =A0http://msmvps.com/blogs/martin_honnen/ Hmmm... that specific query is returning 0 elements. What would I do if I wanted to search for an element that contains just the text ("Earnings/Share")? I thought I could do "//td[. =3D 'Earnings/Share']" but that isn't returning any hits either. Very confused. Thanks for any additional guidance. CxT | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
