Tell me more ×  I want to extract "Date: 2009-09-25, 1:54PM EDT"
from this webpage  But I don't understand how to write Xpath
expressions for that.  Can anyone help me in that.  I am getting
other fields also from this page.  share|improve this question
That page does not seem to be XML compliant, so XPath will
probably not be of great help. –  Fredrik Mörk Sep 26 '09 at
16:43 add comment  2 Answers  up vote 1 down vote accepted  Are
you running the HTML through TIDY or some other process to turn
it into XHTML? Or how are you able to execute XPATH against that
HTML?  If the document was well-formed, then you could probably
use the following XPATH:   It finds the first HR element in the
document, then selects the first text() node following it(which
contains the string "Date: 2009-09-25, 1:54PM EDT"
share|improve this answer Thanks a lot. You have solved my
problem. –  Yatendra Goel Sep 26 '09 at 18:00 add comment  Why
don't you just run a regexp like the one below?   It seams to be
the easiest way. And if yo