zdog has asked for the wisdom of the Perl Monks concerning the following question:
I have an XML file that looks something like this:
Then, using XML::Simple, I do XMLin() and XMLout() on it and it returns something looking like this:<opt> <A> <B> <C> <x>123</x> </C> </B> </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"> <C> <x>123</x> </C> </A> </opt>
This of course does not parse correctly with XMLin() causing my functions that operate on it to be useless.<opt> <A name="B"> <B name="C"> <x>456</x> </B> <C x="123" /> </A> </opt>
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
|
---|
Replies are listed 'Best First'. | |
---|---|
I finally get to help. *Smiles*
by Rhose (Priest) on Aug 22, 2001 at 01:26 UTC | |
Re: XML format help
by princepawn (Parson) on Aug 22, 2001 at 00:47 UTC | |
Re: XML format help
by IraTarball (Monk) on Aug 22, 2001 at 00:56 UTC | |
Re: XML format help
by alowishus (Initiate) on Aug 22, 2001 at 00:43 UTC |
Back to
Seekers of Perl Wisdom