Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Replacing things in XML files

by osunderdog (Deacon)
on Apr 26, 2006 at 19:18 UTC ( #545852=note: print w/replies, xml ) Need Help??


in reply to Replacing things in XML files

XML::Simple

Just for the record, it is simple for simple XML things, however the parameters and options available in this package have complex implications on how the XML information is read in and written out.

Hazah! I'm Employed!

Replies are listed 'Best First'.
Re^2: Replacing things in XML files
by John M. Dlugosz (Monsignor) on Apr 27, 2006 at 18:31 UTC
    It looks like XML::Simple loses the distinction between attributes and child elements, when building the returned data structure. How do you preserve the actual content when writing it back out?

      This is definitely one of the difficulties I've had with XML::Simple. XMLin and XMLout aren't the inverse of each other. In other words, it's difficult write out the same thing that you read in and vice versa.

      I if you need that, you should probably look at XML::Twig.

      Hazah! I'm Employed!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://545852]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2020-12-01 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?