<?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>protung.ro &#187; namespace</title>
	<atom:link href="http://www.protung.ro/tag/namespace/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.protung.ro</link>
	<description></description>
	<lastBuildDate>Tue, 16 Feb 2010 18:03:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Simple XML Parser Namespace support</title>
		<link>http://www.protung.ro/2009/10/simple-xml-parser-namespace-support/</link>
		<comments>http://www.protung.ro/2009/10/simple-xml-parser-namespace-support/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 20:49:25 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[namespace]]></category>
		<category><![CDATA[parse]]></category>
		<category><![CDATA[php class]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.protung.ro/?p=241</guid>
		<description><![CDATA[I have added support for namespaces to the parser. What this means, you are now able to register a namspace in order to be able to parse the XML. Also the usage of this class changed. &#60;?php $xml = "http://www.protung.ro/feed/atom/"; // parse an Atom feed // create a new object $parser = new SimpleLargeXMLParser(); // [...]]]></description>
			<content:encoded><![CDATA[<p>I have added support for namespaces to the parser.<br />
What this means, you are now able to register a namspace in order to be able to parse the XML.</p>
<p>Also the usage of this class changed.</p>
<pre class="brush: php">&lt;?php

$xml = "http://www.protung.ro/feed/atom/"; // parse an Atom feed

// create a new object
$parser = new SimpleLargeXMLParser();
// load the XML
$parser->loadXML($xml);

// register the namespace
$parser->registerNamespace("atom", "http://www.w3.org/2005/Atom");
// this will get an array of entries
$array = $parser->parseXML("//atom:feed/atom:entry");

?&gt;
</pre>
<p>As always, you can download the new version from <a href="http://www.phpclasses.org/browse/package/5667.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.protung.ro/2009/10/simple-xml-parser-namespace-support/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

