<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>eklog &#187; XML</title>
	<atom:link href="http://www.ekstasis.net/log/category/xml/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ekstasis.net/log</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Tue, 29 Nov 2011 16:15:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>XML imported images</title>
		<link>http://www.ekstasis.net/log/web-development/xml-imported-images-using-jquery.html</link>
		<comments>http://www.ekstasis.net/log/web-development/xml-imported-images-using-jquery.html#comments</comments>
		<pubDate>Fri, 30 Jul 2010 19:49:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[remote]]></category>

		<guid isPermaLink="false">http://www.ekstasis.net/log/?p=86</guid>
		<description><![CDATA[Here&#8217;s how to load images from any server using a simple XML files. Useful for giving clients or affiliates access to updating sites without changing the main code. See it in action at: Loading images with XML &#38; jQuery]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how to load images from any server using a simple XML files. Useful for giving clients or affiliates access to updating sites without changing the main code.</p>
<p>See it in action at: <a title="click to view website" href="http://xml.xmhell.com/loadXMLWithJquery/">Loading images with XML &amp; jQuery</a></p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
    $.get(''myData.xml'', function(d) {
        $(''#list'').append(''&lt;dl id=&quot;list1dl&quot; /&gt;'');

        $(d).find(''book'').each(function() {
            var $book = $(this);
            var title = $book.attr(&quot;title&quot;);
            var linkurl = $book.attr(''linkurl'');
            var imageurl = $book.attr(''imageurl'');

            var html = ''&lt;dt&gt;&lt;img class=&quot;bookImage&quot; alt=&quot;whatever&quot; src=&quot;'' + imageurl + ''&quot; /&gt; &lt;span class=&quot;link&quot;&gt;&lt;a href=&quot;http://www.site.com/directory/'' + linkurl + ''&quot;&gt;'' + title + ''&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;'' ;

            // html += ''&lt;dd&gt;'';
            // html += ''&lt;dt class=&quot;title&quot;&gt;'' + title + ''&lt;/dt&gt;'';
            // html += ''&lt;span class=&quot;link&quot;&gt;&lt;a href=&quot;http://www.site.com/directory/'' + linkurl + ''&quot;&gt;'' + title + ''&lt;/a&gt;&lt;/span&gt;'';
            // html += ''&lt;/dd&gt;'';

            $(''#list1dl'').append($(html));

        });
});

    $.get(''myData2.xml'', function(d) {
        $(''#list2'').append(''&lt;dl id=&quot;list2dl&quot; /&gt;'');

        $(d).find(''book'').each(function() {
            var $book = $(this);
            var title = $book.attr(&quot;title&quot;);
            var linkurl = $book.attr(''linkurl'');
            var imageurl = $book.attr(''imageurl'');

            var html = ''&lt;dt&gt;&lt;img class=&quot;bookImage&quot; alt=&quot;whatever&quot; src=&quot;'' + imageurl + ''&quot; /&gt; &lt;span class=&quot;link&quot;&gt;&lt;a href=&quot;http://www.site.com/directory/'' + linkurl + ''&quot;&gt;'' + title + ''&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;'' ;

            $(''#list2dl'').append($(html));

        });
    });
});
</pre>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
&lt;books&gt;
    &lt;book title=&quot;title1&quot; imageurl=&quot;http://www.site.com/image1.jpg&quot; linkurl=&quot;link1.html&quot;&gt;&lt;/book&gt;
    &lt;book title=&quot;title2&quot; imageurl=&quot;http://www.site.com/image2.jpg&quot; linkurl=&quot;link2.html&quot;&gt;&lt;/book&gt;
    &lt;book title=&quot;title3&quot; imageurl=&quot;http://www.site.com/image3.jpg&quot; linkurl=&quot;link3.html&quot;&gt;&lt;/book&gt;
    &lt;book title=&quot;title4&quot; imageurl=&quot;http://www.site.com/image4.jpg&quot; linkurl=&quot;link4.html&quot;&gt;&lt;/book&gt;
&lt;/books&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ekstasis.net/log/web-development/xml-imported-images-using-jquery.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

