I have this div:
<div class="product-name">Product1</div>
I also have this div:
<div class="product-name gold">Product2</div>
How can I alter this xpath query to get whatever divs which contains product-name? Instead of getting an exact match.
/html/body//div[@class='product-name']
I googled it, but all I could find is how to use contains when searching for a value within a node, and not an attribute.
EDIT

<html><body>..</body></html>and everything will be ok.XML Error: System.Xml.XmlException: There are multiple root elements. Line 4, position 2. at System.Xml.XmlTextReaderImpl.Throw(Exception e)when the same document is supplied.