<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ajax and getElementById</title>
	<atom:link href="http://www.subbu.org/blog/2006/04/ajax-and-getelementbyid/feed" rel="self" type="application/rss+xml" />
	<link>http://www.subbu.org/blog/2006/04/ajax-and-getelementbyid</link>
	<description>HTTP, REST and some Cycling</description>
	<lastBuildDate>Mon, 15 Mar 2010 08:14:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: pagod</title>
		<link>http://www.subbu.org/blog/2006/04/ajax-and-getelementbyid/comment-page-1#comment-51068</link>
		<dc:creator>pagod</dc:creator>
		<pubDate>Fri, 22 Jan 2010 16:36:52 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2006/04/ajax-and-getelementbyid/#comment-51068</guid>
		<description>Hi,

I&#039;m having this exact problem right now -- getting XML through XMLHttpRequest, attempting to get elements through their ID&#039;s (attribute &#039;id&#039;) to avoid huge XPath expressions, but no chance. The problem is that the XML document is based on a DTD (to which there is a link in the DOCTYPE declaration) that does define &#039;id&#039; as being of type ID, but doesn&#039;t allow xml:id, i.e. I can only rely on the &#039;id&#039; attribute to access my elements. But as you pointed out (to my despair) browsers are not DTD aware when parsing responseXML. Why is that so?? 

Do you know if there&#039;s anything new on that front? 

Thx for the good post and, should you be able to help me, for your support! :-)

pagod</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m having this exact problem right now &#8212; getting XML through XMLHttpRequest, attempting to get elements through their ID&#8217;s (attribute &#8216;id&#8217;) to avoid huge XPath expressions, but no chance. The problem is that the XML document is based on a DTD (to which there is a link in the DOCTYPE declaration) that does define &#8216;id&#8217; as being of type ID, but doesn&#8217;t allow xml:id, i.e. I can only rely on the &#8216;id&#8217; attribute to access my elements. But as you pointed out (to my despair) browsers are not DTD aware when parsing responseXML. Why is that so?? </p>
<p>Do you know if there&#8217;s anything new on that front? </p>
<p>Thx for the good post and, should you be able to help me, for your support! :-)</p>
<p>pagod</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Dunne</title>
		<link>http://www.subbu.org/blog/2006/04/ajax-and-getelementbyid/comment-page-1#comment-106</link>
		<dc:creator>Richard Dunne</dc:creator>
		<pubDate>Mon, 09 Apr 2007 07:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2006/04/ajax-and-getelementbyid/#comment-106</guid>
		<description>I tried accessing http.responseText using and responsehandler e.g.
var x=http.responseText;
and then getElementById().innerHTML, e.g.
var y=x.getElementById(&#039;y&#039;).innerHTML;
but I get &quot;undifined is null or not an object&quot;.
Could you offer any tips/insights?
</description>
		<content:encoded><![CDATA[<p>I tried accessing http.responseText using and responsehandler e.g.<br />
var x=http.responseText;<br />
and then getElementById().innerHTML, e.g.<br />
var y=x.getElementById(&#8217;y').innerHTML;<br />
but I get &#8220;undifined is null or not an object&#8221;.<br />
Could you offer any tips/insights?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
