APS Standard XML decode

Hello,
Some one help me with converting the following XML contents to an ARRAY. The most important part you should take note of is the


<requirements>
...
</requirements>

The XML content is:


<!-- $Rev: 428033 $ -->
<application xmlns="http://apstandard.com/ns/1">
	<name>joomla</name>
	<packager-uri>uuid:3f2c57a0-6894-772e-123a-2fe71e10b8b1</packager-uri>
	<version>3.0.3</version>
	<release>2</release>
	<homepage>http://www.joomla.org/</homepage>
	<package-homepage>http://www.sofcloudit.com</package-homepage>
	<default-prefix>joomla</default-prefix>
	
	<summary>Content management system and Web application framework</summary>
	<description>
		Joomla! is a powerful open source content management system. It is used for managing
		simple Web sites and complex corporate applications. Joomla! is easy to install, simple
		to manage, and reliable. Once Joomla! is installed and running, it is simple for even
		non-technical users to add or edit content, update images, and to manage critical data.
		Anybody with basic word processing skills can easily learn to manage a Joomla! site.
	</description>
	
	<icon path="images/icon.png"/>
	
	<screenshot path="images/main_screenshot.jpg">
		<description>
			Main screenshot.
		</description>
	</screenshot>
	
	<screenshot path="images/admin_screenshot.jpg">
		<description>
			Admin screenshot.
		</description>
	</screenshot>
	
	<license must-accept="true">
		<text>
			<name>GPLv2</name>
			<file>htdocs/LICENSE.txt</file>
		</text>
	</license>
	
	<configuration-script-language>php</configuration-script-language>
	
	<!-- upgradable-from version="1.6.0" release="1"/ -->
	<upgradable-from release="12" version="3.0.2"/>

	<changelog>
		<version release="2" version="3.0.3">
			<entry>Joomla 3.0.3. Release notes:
http://www.joomla.org/announcements/release-news/5478-joomla-3-0-3-released.html</entry>
		</version><version release="11" version="3.0.2">
			<entry>Joomla 3.0.2. Release notes:
http://www.joomla.org/announcements/release-news/5471-joomla-3-0-2-released.html</entry>
		</version>
	</changelog>
	
	<entry-points>
		<entry>
			<path>/administrator/</path>
			<label>Administrative interface</label>
		</entry>
		<entry>
			<path>/</path>
			<label>Site</label>
		</entry>
	</entry-points>
	
	
	<installed-size>21004288</installed-size>
	
	<categories>
		<category>Web/Content management</category>
	</categories>
	
	<languages>
		<language>en</language>
	</languages>
	
	<settings>
		<group>
			<name>Administrator's preferences</name>
			<setting id="admin_name" type="string" default-value="admin" min-length="1" max-length="32" regex="^[a-zA-Z][0-9a-zA-Z_\\-]*">
				<name>Administrator's login</name>
				<error-message>Please make sure the text you entered starts with a letter and continues with either numbers, letters, underscores or hyphens.</error-message>
			</setting>
			<setting id="admin_password" type="password" min-length="1" >
				<name>Password</name>
			</setting>
			<setting id="admin_email" type="email">
				<name>Administrator's email</name>
			</setting>
		</group>
		<group>
			<name>Main configuration</name>
			<setting id="title" type="string" min-length="1" installation-only="true">
				<name>Site name</name>
			</setting>
			<!-- setting id="file_manager" type="enum" default-value="yes">
				<name>Enable File Manager eXtplorer plug-in</name>
				<choice id="no" >
					<name>no</name>
				</choice>
				<choice id="yes" >
					<name>yes</name>
				</choice>
			</setting -->
			<setting id="sample_data" type="enum" default-value="yes" installation-only="true">
				<name>Install Sample Data</name>
				<choice id="yes" >
					<name>yes</name>
				</choice>
				<choice id="no" >
					<name>no</name>
				</choice>
			</setting>
			<setting id="locale" type="enum" default-value="en-GB">
				<name>Interface language</name>
				<choice id="zh-CN" >
					<name>Chinese (Simplified)</name>
				</choice>
				<choice id="zh-TW" >
					<name>Chinese (Traditional)</name>
				</choice>
				<choice id="da-DK" >
					<name>Danish</name>
				</choice>
				<choice id="nl-NL" >
					<name>Dutch</name>
				</choice>
				<choice id="en-GB" >
					<name>English</name>
				</choice>
				<choice id="fr-FR" >
					<name>French</name>
				</choice>
				<choice id="de-DE" >
					<name>German</name>
				</choice>
				<choice id="it-IT" >
					<name>Italian</name>
				</choice>
				<choice id="ja-JP" >
					<name>Japanese</name>
				</choice>
				<choice id="nb-NO" >
					<name>Norwegian</name>
				</choice>
				<choice id="pl-PL" >
					<name>Polish</name>
				</choice>
				<choice id="ru-RU" >
					<name>Russian</name>
				</choice>
				<choice id="es-ES" >
					<name>Spanish</name>
				</choice>
			</setting>
			<setting id="smtp_host" type="string" default-value="example.com">
				<name>SMTP Host, which Joomla will use to send email</name>
			</setting>
			<setting id="smtp_port" type="integer" default-value="25">
				<name>SMTP Port</name>
			</setting>
		</group>

	</settings>
	
	
	<requirements xmlns:db="http://apstandard.com/ns/1/db" xmlns:php="http://apstandard.com/ns/1/php">
		<php:magic-quotes-gpc>false</php:magic-quotes-gpc>
		<php:version min="5.3.1"/>
		<php:extension>mysql</php:extension>
		<php:extension>zlib</php:extension>
		<php:extension>xml</php:extension>
		<php:safe-mode>false</php:safe-mode>
		<php:file-uploads>true</php:file-uploads>
		<php:register-globals>false</php:register-globals>
		
		<db:db>
			<db:id>main</db:id>
			<db:default-name>joomla</db:default-name>
			<db:can-use-tables-prefix>true</db:can-use-tables-prefix>
			<db:server-type>mysql</db:server-type>
			<db:server-min-version>5.1</db:server-min-version>
		</db:db>
	</requirements>
	
	
	<mapping url="/" path="htdocs" xmlns:php="http://apstandard.com/ns/1/php">
		<php:permissions writable="true"/>
		<php:handler>
			<php:extension>php</php:extension>
		</php:handler>
		
		<mapping url="administrator">
			<mapping url="components"><php:permissions writable="true"/></mapping>
			<mapping url="language"><php:permissions writable="true"/></mapping>
			<mapping url="modules"><php:permissions writable="true"/></mapping>
			<mapping url="templates"><php:permissions writable="true"/></mapping>
			<mapping url="cache"><php:permissions writable="true"/></mapping>
		</mapping>
		
		<mapping url="cache"><php:permissions writable="true"/></mapping>
		<mapping url="components"><php:permissions writable="true"/></mapping>
		<mapping url="images">
			<php:permissions writable="true"/>
			<mapping url="banners"><php:permissions writable="true"/></mapping>
		</mapping>
		<mapping url="language"><php:permissions writable="true"/></mapping>
		<mapping url="logs"><php:permissions writable="true"/></mapping>
		<mapping url="modules"><php:permissions writable="true"/></mapping>
		<mapping url="media"><php:permissions writable="true"/></mapping>
		<mapping url="plugins"><php:permissions writable="true"/></mapping>
		<mapping url="templates"><php:permissions writable="true"/></mapping>
		<mapping url="tmp"><php:permissions writable="true"/></mapping>
	</mapping>
	
</application>

I have tried all possible googling but have totally failed.

Thanks, Joseph