|The stupid question is the question not asked|
XML::Simple how do i keep the same xml format (Values and Attributs)?by tobias_hofer (Friar)
|on Jun 14, 2013 at 10:04 UTC||Need Help??|
tobias_hofer has asked for the
wisdom of the Perl Monks concerning the following question:
I am using XML::Simple for xml processing.
I read in following from a file:
And I want to write the same to file. Thing is, that when i am putting the xml to file some values become xml-attributes.
So in the end i got this:
This read about parameters to XML Simple like VauleAttr and KeyAttr but it seems to have no effect. As far as i have understood i can define with ValueAttr what should be printed as Value and not as Attribute.. Maybe i have misunderstood this API? The same idea i have form KeyAttr so i can define what hash-keys are in the end Attributes and no values..
I am stuck in the middle, any help is highly welcome!
Here my prototype where i read in the an xml-file with the content of the first XML-structure i have put here. By this i can check if (at the end) i will get the same XML-structure back when looking at $xml:
Any help is highly welcome!