I have one XMl of the form :-
<dataset>
<Unit1>
<a>1</a>
<b>2</b>
</unit1>
<Unit2>
<a>1</a>
<b>2</b>
</unit2>
</dataset>
and i have parsed ity. Now i want to generate two XMLs out of it using PHP in the form:-
<dataset>
<Unit1>
<a>1</a>
<b>2</b>
</unit1>
</dataset>
and
<dataset>
<Unit2>
<a>1</a>
<b>2</b>
</unit2>
</dataset>
Can you help me in how to proceed. Some code will surely help me as i am beginner with PHP
Thanks