<?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: Is there a javascript function I can use to extract data from an xml document?</title>
	<atom:link href="http://www.learnxmlws.com/is-there-a-javascript-function-i-can-use-to-extract-data-from-an-xml-document/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learnxmlws.com/is-there-a-javascript-function-i-can-use-to-extract-data-from-an-xml-document/</link>
	<description></description>
	<lastBuildDate>Thu, 09 Sep 2010 12:32:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: untitledskate</title>
		<link>http://www.learnxmlws.com/is-there-a-javascript-function-i-can-use-to-extract-data-from-an-xml-document/comment-page-1/#comment-265</link>
		<dc:creator>untitledskate</dc:creator>
		<pubDate>Sun, 27 Dec 2009 22:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnxmlws.com/is-there-a-javascript-function-i-can-use-to-extract-data-from-an-xml-document/#comment-265</guid>
		<description>You&#039;ve already mentioned AJAX, which essentially is the process of reading XML files from javascript.  I have provided a beginners guide to AJAX which should answer your questions.  As far as your PHP writing an XML file, you can just use: echo &quot;&lt;xml&gt;&quot;; ... etc to build your XML file.  When you hit that php file you will just get XML returned.

If you are just trying to get a variable from php -&gt; javascript, without back and forth, you can just include a php line in your javascript, which will get proccessed when you hit the page:

eg:

//This is javascript
var name = &quot;&lt;? echo &quot;Some php variable&quot;; ?&gt;&quot;;

Hope this helps</description>
		<content:encoded><![CDATA[<p>You&#8217;ve already mentioned AJAX, which essentially is the process of reading XML files from javascript.  I have provided a beginners guide to AJAX which should answer your questions.  As far as your PHP writing an XML file, you can just use: echo &quot;&lt;xml&gt;&quot;; &#8230; etc to build your XML file.  When you hit that php file you will just get XML returned.</p>
<p>If you are just trying to get a variable from php -&gt; javascript, without back and forth, you can just include a php line in your javascript, which will get proccessed when you hit the page:</p>
<p>eg:</p>
<p>//This is javascript<br />
var name = &quot;&lt;? echo &quot;Some php variable&quot;; ?&gt;&quot;;</p>
<p>Hope this helps</p>
]]></content:encoded>
	</item>
</channel>
</rss>
