Search XML file using javascript
<p>I'm trying to make a page where a user may enter a url into an input box, click submit, and the script will return the WebCite page. (WebCite is a url caching service. For example, if I "archive" www.google.com, the archive page is www.webcitation.org/65YgIgei6.) So WebCite has a query syntax that when given a url to cache, an email, and the parameter <code>&amp;returnxml=true</code>, it will return an xml file. (For example, <a href="http://www.webcitation.org/archive?url=http://www.google.com&amp;email=testtt@test.com&amp;returnxml=true" rel="nofollow">http://www.webcitation.org/archive?url=http://www.google.com&amp;email=testtt@test.com&amp;returnxml=true</a> leads to an xml file where the text between the <code>&lt;webcite_url&gt;</code> tags is the archive page.)</p>

<p>So I would like some Javscript (or jquery) that will search the xml file for "<code>&lt;webcite_url&gt;</code>" and "<code>&lt;/webcite_url&gt;</code>" and return the url within those tags. <a href="http://jsfiddle.net/gxHWk/" rel="nofollow">http://jsfiddle.net/gxHWk/</a> is the basic idea.</p>

<p>btw, I read stackoverflow.com/questions/6648454/search-and-output-data-from-an-xml-file-using-javascript, but I can't figure out how to adapt the code there to my circumstances.</p>

<p>(*removed "http://" from some links because of spam filter)</p>

<p>Thanks!</p>
