In terms of HTML Agility Pack, "// a" means "Find all tags with the name" a "or" A "anywhere in the document." See XPATH Docs for more general XPATH help (regardless of HTML flexibility package). Therefore, if the document is as follows:
<div> <A href="xxx">anchor 1</a> <table ...> <a href="zzz">anchor 2</A> </table> </div>
You will get two HTML anchor elements. OuterHtml represents the HTML node, including the node itself, while InnerHtml represents only the HTML content of the node. So, here are two OuterHtml:
<A href="xxx">anchor 1</a>
and
<a href="zzz">anchor 2</A>
Note. I specified "a" or "A" because the HAP implementation is careful or case insensitive to HTML. And "// A" dos does not work by default. You need to specify tags using lowercase letters.
source share