Basically VerifyPath uses XPATH queries, so if you write the proper query to select the attribute you should be able to compare it or check
TO select an entry "service1binding" within web.config, we would use the following XPATH query
<wsHttpBinding>
<binding name="service1binding">
XPATH query
"/configuration/system.serviceModel/bindings/wsHttpBinding/binding[@name='service1binding']"
THE ABOVE XPATH query is not formatted for WIX and you cannot use it the way it is
Note that the VERIFYPATH is a formatted field and therefore, square brackets in the XPath must be escaped. In addition, XPaths allow backslashes to be used to escape characters, so if you intend to include literal backslashes, you must escape them as well by doubling them in this attribute. The string is formatted by MSI first, and the result is consumed as the XPath.