<?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>dom &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/dom/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Sat, 12 Jun 2010 09:58:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.sephiroth.it/wp-content/uploads/2019/03/cropped-sepy-big-32x32.png</url>
	<title>dom &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>A PHP domxml class in flash style!</title>
		<link>https://blog.sephiroth.it/2003/12/02/a-php-domxml-class-in-flash-style/</link>
					<comments>https://blog.sephiroth.it/2003/12/02/a-php-domxml-class-in-flash-style/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Tue, 02 Dec 2003 19:30:41 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[dom]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[xml]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=6</guid>

					<description><![CDATA[Some days ago Daniele, a friend of mine, point my attention to an opensource project hosted on sourceforge that is very interesting for PHP/Flash guys &#240;&#159;&#153;&#130; This module permit to do an xml parsing, in PHP, using a dom xml in the same way we already do in flash. Here a little example i made &#8230; <a href="https://blog.sephiroth.it/2003/12/02/a-php-domxml-class-in-flash-style/" class="more-link">Continue reading <span class="screen-reader-text">A PHP domxml class in flash style!</span></a>]]></description>
										<content:encoded><![CDATA[<p><span class="normalText">Some days ago Daniele, a friend of mine, point my attention to an opensource project hosted on sourceforge that is very interesting for PHP/Flash guys 🙂<br />
This module permit to do an xml parsing, in PHP, using a dom xml in the same way we already do in flash.</span></p>
<p>Here a little example i made using this class:</p>
<pre>&lt;?
// include the php module
include('lib.xml.inc.php');
// load an external xml source
$test = new XML('test.xml');

// make a simple parsing, in AS style ;)
$childs = $test-&gt;firstChild-&gt;childNodes;
for($a = 0; $a &lt; count($childs); $a++){	
echo "nodeName " . $childs[$a]-&gt;nodeName . "&lt;br /&gt;";	
echo "nodeValue " . $childs[$a]-&gt;firstChild-&gt;nodeValue . "&lt;br /&gt;";
}
?&gt;</pre>
<p>as you can see, we&#8217;re already familiar with firstChild, nodeName, nodeValue&#8230; etc..<br />
I always hate the PHP SAX parser, and always always prefer a dom xml parser, much more simple to create and to read.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2003/12/02/a-php-domxml-class-in-flash-style/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
