How To Get Plain Text With Xpath
Hi I got this piece of html and i want to get text elements from it
Toltec Lighting 216-BRZ-508
Solution 1:
You can try this :
//span[@id='product_description']/text()
or if you need to also make sure no empty text nodes selected :
//span[@id='product_description']/text()[normalize-space()]
Solution 2:
You may try using this:
//*[text()='Toltec Lighting']
Post a Comment for "How To Get Plain Text With Xpath"