", "text": "<p>I have some problem getting all the HTML tags after <code><script></code>...<code><script/></code> using XPath.</p>\n\n<p>My HTML:</p>\n\n<pre class="prettyprint"><code><table dir="rtl"...>\n <tbody>\n <tr>..</tr>\n <script src = get.aspx?type=js&file=ajax&rev=3 ....>\n <script language="JavaScript".....>\n <script>...<script>\n <tr>..</tr>\n <tr>..</tr>\n <tr>..</tr>\n <tr>..</tr>\n <tr>..</tr>\n</code></pre>\n\n<p>I want to get all tags after the script tag in XPath.</p>\n\n<p>This is the link to the web page: source</p>", "answerCount": 1, "upvoteCount": 932, "dateCreated": "2026-08-21 12:45:06", "dateModified": "2026-08-24 12:10:19", "author": { "type": "Person", "name": "adellam" }, "acceptedAnswer": { "@type": "Answer", "text": "<p>The html you posted has a <code><script>...<script></code><sup>1</sup> after <code><script language="JavaScript".....></code>, but the source does not have the extra <code><script></code> tag(s). </p>\n\n<p>For the source HTML, this XPath works:</p>\n\n<pre class="prettyprint"><code>//script[@language="JavaScript"]/following::tr\n</code></pre>\n\n<hr>\n\n<p><sup>1</sup> Did you mean <code><script>...</script></code>?</p>", "upvoteCount": 98, "url": "https://exchangetuts.com/index.php/xpath-expression-to-select-all-tags-after-scriptscript-1769405102488810#answer-1787489106588732", "dateCreated": "2026-08-24 00:10:19", "dateModified": "2026-08-24 12:10:19", "author": { "type": "Person", "name": "unutbu" } } } }