I have the following XML file in the below format:
I am using XML:arser Tree Style and the Dumper gives me:
When you see this, you seee unnecessary '0' tags with new lines as its values. I know it is because of the new lines between the tags. I can write some code to remove things like these but ss there a way that is already built in to get rid of these.
Thanks.
Code:
<root>
<clients id="4">
<name>temp</name>
<order>yes</order>
</clients>
</root>
I am using XML:arser Tree Style and the Dumper gives me:
Code:
$VAR1 = [
'root',
[
{},
0,
'
',
'clients',
[
{
'id' => '4'
},
0,
'
',
'name',
[
{},
0,
'temp'
],
0,
'
',
'order',
[
{},
0,
'yes'
],
0,
'
'
],
0,
'
'
]
];
When you see this, you seee unnecessary '0' tags with new lines as its values. I know it is because of the new lines between the tags. I can write some code to remove things like these but ss there a way that is already built in to get rid of these.
Thanks.