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
which will match any attribute on the context element that contains string. So if you simply want to search the whole document for attributes containing string, you'd use: