xml - XPath to select nodes with certain name or attribute value -
i want remove footer
section html source.
consider following cases,
<div id="footer">blabla</div>
or
<div class="footer">blabla</div>
or
<footer>blablabla</footer>
how can match above cases using xpath?
i come this:
//*[contains(lower-case(@*),'footer')] | //footer
Comments
Post a Comment