Perl XML::Simple XMLout function
Posted
by Jeremey
on Stack Overflow
See other posts from Stack Overflow
or by Jeremey
Published on 2010-03-08T21:57:31Z
Indexed on
2010/03/08
22:06 UTC
Read the original article
Hit count: 362
I pass in the following XML to XMLin:
<root foo="bar" foo2="bar2">
<pizzas>
<pizza>Pepperoni</pizza>
</pizzas>
</root>
I then edit part of the root element via hash array. I don't care about the pizza, but i do need that XML to come back out exactly as it was. However, I get the following from XMLout:
<root foo="bar" foo2="bar2">
<pizzas pizza="Pepperoni"</pizzas>
</root>
Thoughts?
© Stack Overflow or respective owner