Compare Revisions

Introduction to using XPath in JavaScript

Revision 110860:

Revision 110860 by Jt on

Revision 110861:

Revision 110861 by Lies on

Title:
Introduction to using XPath in JavaScript
Introduction to using XPath in JavaScript
Slug:
Introduction_to_using_XPath_in_JavaScript
Introduction_to_using_XPath_in_JavaScript
Tags:
DOM, XML, XSLT, Extensions, Add-ons, Transforming_XML_with_XSLT, XPath, "Web Development"
DOM, XML, XSLT, Extensions, Add-ons, Transforming_XML_with_XSLT, XPath, "Web Development"
Content:

Revision 110860
Revision 110861
n279      To extract all the <span class="plain">&lt;code&gt;&lt;h2&gn279      To extract all the <code><span class="plain">&lt;h2&gt;</sp
>t;&lt;/code&gt;</span> heading elements in a HTML document using >an></code> heading elements in a HTML document using XPath, the <
>XPath, the <code>xpathExpression</code> is simply '<code>//h2</co>code>xpathExpression</code> is simply '<code>//h2</code>'. Where,
>de>'. Where, <code>//</code> is the Recursive Descent Operator th> <code>//</code> is the Recursive Descent Operator that matches e
>at matches elements with the nodeName <code>h2</code> anywhere in>lements with the nodeName <code>h2</code> anywhere in the documen
> the document tree. The full code for this is: <span class="comme>t tree. The full code for this is: <span class="comment">link to 
>nt">link to introductory xpath doc</span>>introductory xpath doc</span>
t305    </p>t
306    <p>
307      <br>

Back to History