<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>Use &lt;code&gt;document.evaluate&lt;/code&gt; not &lt;code&gt;document.getElementsByTagName&lt;/code&gt;
And you should use &lt;code&gt;if(link[i].innerHTML.indexOf(ExpectedName) !== -1){&lt;/code&gt; not &lt;code&gt;if(link[i].innerHTML==(ExpectedName)){&lt;/code&gt; incase they don't put the EXACT text in.</body>
  <body-html>&lt;p&gt;Use &lt;code&gt;document.evaluate&lt;/code&gt; not &lt;code&gt;document.getElementsByTagName&lt;/code&gt;
&lt;br /&gt;And you should use &lt;code&gt;if(link[i].innerHTML.indexOf(ExpectedName) !== -1){&lt;/code&gt; not &lt;code&gt;if(link[i].innerHTML==(ExpectedName)){&lt;/code&gt; incase they don't put the EXACT text in.&lt;/p&gt;</body-html>
  <created-at type="datetime">2008-08-13T01:57:36Z</created-at>
  <forumable-id type="integer">27909</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">72364</id>
  <topic-id type="integer">16816</topic-id>
  <updated-at type="datetime">2008-11-17T00:18:41Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">23652</user-id>
</post>
