Hi;
I'm using this code to parse the XML file:
$library = simplexml_load_file('ls.xml');
foreach ($library->ls as $ls)
{ echo $ls->id;
echo $ls->system.Status;}
This is working fine for elements which are in the format of:
<id>345</id>
But there are quite few elements that have dots in their name , like:
<system.Status>active</osType>
When I try to parse the second element, and use the same code, I run into problem, my output looks like:
345 Status
instead of
345 active
What should I do?
thank you in advance