I can search for a String contained in an specific attribute if I use the following XPath /xs:schema/node()/descendant::node()[starts-with(@my-specific-attrib
/xs:schema/node()/descendant::node()[starts-with(@my-specific-attrib
Sample XML:
Suppose, we need to select elements which have any attribute containing h. In this sample: element1, element2. We can use this XPath:
h
element1
element2
//*[@*[starts-with(., 'h')]]
In your sample:
/xs:schema/node()/descendant::node() [@*[starts-with(@my-specific-attribute-name-here, 'my-search-string')]]