2

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?

0

1 Answer 1

8

My guess is that you did not use ForceArray with XMLin. Give that a try. If that does not work, show us your Perl code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.