Sunday 15 January 2012

how can I select this text in XPATH? -


I want to select the postal code with the city. All the selectors I used were getting without the whole application or the correct data.

  & lt; Div class = "merchantContact" & gt; & Lt; H2 square = "subheadline firefighter-match" & gt; L 'Otry Paid & lt; / H2 & gt; 5-7 & amp; Nbsp; Blondford Street & lt; Br> London and W1U 3DB & lt; ------------------- I want this line & lt; Br> & Lt; A href = "http://www.lautrepied.co.uk" onclick = "window.open (this.href); returnback;" & Gt; & Lt; Font color = "# 0891b" & gt; Company website & lt; / Font & gt; & Lt; / A & gt; & Lt; Br> & Lt; / Div & gt;    

Try it out:

  html / body / Div / text () [3]   

Firefox addon:

 desc img


Maybe you should be more specific in your expression, so try this:

  // div [@ class = "merchantContact"] / text () [3]    

No comments:

Post a Comment