I have an XML like this:
<properties>
<property>name</property><value>john</value>
<property>surname</property><value>wayne</value>
<property>age</property><value>33</value>
<property>blaaa</property><value>blaa</value>
</properties>
I have to parse this and I used something like this:
$xle = simplexml_load_file('xml.xml');
foreach ($xle->properties as $properties) {
foreach ($properties->property as $property) {
echo $property, "<br />\n";
}
foreach ($properties->value as $value) {
echo $value, "<br />\n";
}
}
I came to this so far, i need something like
"property = value" "name = john"
my code outputs something like this :
name
surname
age
blaa
john
wayne
33
blaa