<?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: How do I recieve an xml feed with an xmlhttp object?</title>
	<atom:link href="http://www.learnxmlws.com/how-do-i-recieve-an-xml-feed-with-an-xmlhttp-object/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learnxmlws.com/how-do-i-recieve-an-xml-feed-with-an-xmlhttp-object/</link>
	<description></description>
	<lastBuildDate>Sun, 18 Dec 2011 08:00:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Jake Cigar</title>
		<link>http://www.learnxmlws.com/how-do-i-recieve-an-xml-feed-with-an-xmlhttp-object/#comment-2066</link>
		<dc:creator>Jake Cigar</dc:creator>
		<pubDate>Sat, 20 Feb 2010 22:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnxmlws.com/how-do-i-recieve-an-xml-feed-with-an-xmlhttp-object/#comment-2066</guid>
		<description>files that don&#039;t end in xml need to be served as application/xml. you can do that part in the asp that creates them.

now for the bad news. you can&#039;t use ajax to jump out of your domain unless you have a little (very little) cgi/asp program on your server that does the real GET and then re-serves it for your news reader!</description>
		<content:encoded><![CDATA[<p>files that don&#8217;t end in xml need to be served as application/xml. you can do that part in the asp that creates them.</p>
<p>now for the bad news. you can&#8217;t use ajax to jump out of your domain unless you have a little (very little) cgi/asp program on your server that does the real GET and then re-serves it for your news reader!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: djlazi</title>
		<link>http://www.learnxmlws.com/how-do-i-recieve-an-xml-feed-with-an-xmlhttp-object/#comment-2067</link>
		<dc:creator>djlazi</dc:creator>
		<pubDate>Sat, 20 Feb 2010 22:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnxmlws.com/how-do-i-recieve-an-xml-feed-with-an-xmlhttp-object/#comment-2067</guid>
		<description>function handleServerResponse() 
{
  if (xmlHttp.readyState == 4) 
  {
     if (xmlHttp.status == 200) 
    {
      response = xmlHttp.responseText;
     document.getElementById (connect line below)
(&quot;divMessage&quot;).innerHTML = response;
    } 
    else 
    {
      alert(&quot;There was a problem accessing the server: &quot; + xmlHttp.statusText);
    }
  }
}


divmessage is the empty div where I want to put the data, i might need to repost if it cut off my lines.

Now I ran into a problem because javascript hates cross domain stuff and there was a couple fixes for this but it would be easier to use another language like php, asp, c# or whatever to get the info and store it in a local file and read it from there. That way there is no cross domain problems. But try this, perhaps someone has a better answer.

Good Luck</description>
		<content:encoded><![CDATA[<p>function handleServerResponse()<br />
{<br />
  if (xmlHttp.readyState == 4)<br />
  {<br />
     if (xmlHttp.status == 200)<br />
    {<br />
      response = xmlHttp.responseText;<br />
     document.getElementById (connect line below)<br />
(&quot;divMessage&quot;).innerHTML = response;<br />
    }<br />
    else<br />
    {<br />
      alert(&quot;There was a problem accessing the server: &quot; + xmlHttp.statusText);<br />
    }<br />
  }<br />
}</p>
<p>divmessage is the empty div where I want to put the data, i might need to repost if it cut off my lines.</p>
<p>Now I ran into a problem because javascript hates cross domain stuff and there was a couple fixes for this but it would be easier to use another language like php, asp, c# or whatever to get the info and store it in a local file and read it from there. That way there is no cross domain problems. But try this, perhaps someone has a better answer.</p>
<p>Good Luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julio M</title>
		<link>http://www.learnxmlws.com/how-do-i-recieve-an-xml-feed-with-an-xmlhttp-object/#comment-2068</link>
		<dc:creator>Julio M</dc:creator>
		<pubDate>Sat, 20 Feb 2010 22:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnxmlws.com/how-do-i-recieve-an-xml-feed-with-an-xmlhttp-object/#comment-2068</guid>
		<description>news flash everyone!! that&#039;s not javascript code you see up there! it&#039;s asp :-S. what error are you getting ? you should try adding the next line of code before executing the send:

objXMLReq.setRequestHeader &quot;Content-Type&quot;, &quot;application/xml&quot;

Cheers</description>
		<content:encoded><![CDATA[<p>news flash everyone!! that&#8217;s not javascript code you see up there! it&#8217;s asp :-S. what error are you getting ? you should try adding the next line of code before executing the send:</p>
<p>objXMLReq.setRequestHeader &quot;Content-Type&quot;, &quot;application/xml&quot;</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>

