I'm trying to read xml file in zend FW2 but xml reader doesn't read attributes and values together from the tags so I'm trying to use simplexml to read my xml file(this is the first time I write xml file) xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<xs:mapping xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:IM-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<xs:serverSide xsi:type="IM-ENC:Array"></xs:serverSide>
<xs:clientSide xsi:type="IM-ENC:Array">
<item xsi:type="ns2:Map">
<item>
<key xsi:type="xs:string">key1</key>
<value xsi:type="xs:string">value1</value>
</item>
<item>
<key xsi:type="xs:string">key2</key>
<value xsi:type="xs:string">value2</value>
</item>
</item>
</xs:clientSide>
</xs:mapping>
and reading the file this way:
<?php
$xml=simplexml_load_file(my.xml);
print_r($xml);
but the result is empty simpleXMLElement object, I can't figure out the mistake in my xml can you help me, thanx in advance. NOTE: I'm using this file for local use not soap, but couldn't find another example to use array, maybe this changes a thing.