I have an XML file that looks something like this:
<opt>
<A>
<B>
<C>
<x>123</x>
</C>
</B>
</A>
</opt>
Then, using XML::Simple, I do XMLin() and XMLout() on it and it returns something looking like this:
<opt>
<A name="B">
<C>
<x>123</x>
</C>
</A>
</opt>
This second way parses the same way with XMLin() as the first one, and then I add a field using a certain function
and then XMLout() returns it yet again a different way:
<opt>
<A name="B">
<B name="C">
<x>456</x>
</B>
<C x="123" />
</A>
</opt>
This of course does not parse correctly with XMLin() causing my functions that operate on it to be useless.
Now the question: is there any module or method that I can use that will allow me to keep the initial XML format throughout the runnings of the program?
Zenon Zabinski | zdog | zdog7@hotmail.com