<?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>Instropy &#187; xml php</title>
	<atom:link href="http://www.instropy.com/tag/xml-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.instropy.com</link>
	<description>El blog de Oscar Nevarez Leal.</description>
	<lastBuildDate>Mon, 28 Mar 2011 20:32:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Parseando xml con php.</title>
		<link>http://www.instropy.com/2008/09/19/parseando-xml-con-php/</link>
		<comments>http://www.instropy.com/2008/09/19/parseando-xml-con-php/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 18:09:00 +0000</pubDate>
		<dc:creator>Insane</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[parsear xml con php]]></category>
		<category><![CDATA[xml php]]></category>

		<guid isPermaLink="false">http://instropy.com/?p=47</guid>
		<description><![CDATA[
$s='&#60;items&#62;

 &#60;item id="2"&#62;&#60;/item&#62;

 &#60;item id="3"&#62;&#60;/item&#62;

 &#60;item id="4"&#62;&#60;/item&#62;

 &#60;item id="5"&#62;&#60;/item&#62;

 &#60;item id="6" attr="self"&#62;&#60;/item&#62;

&#60;/items&#62;';

$items=aray();

$xml = simplexml_load_string($s);

foreach($xml as $item):

  $attrs = (object)$item->attributes();

  echo "id = ".$attrs->id." &#038; "." attr = ".@$attrs->attr."\n";

endforeach;
]]></description>
		<wfw:commentRss>http://www.instropy.com/2008/09/19/parseando-xml-con-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

