Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: XML::Simple "transforming data"

by duct_tape (Hermit)
on Mar 21, 2005 at 20:31 UTC ( #441294=note: print w/replies, xml ) Need Help??


in reply to XML::Simple "transforming data"

Look at the NoAttr option for XMLout. I believe that will do what you'd like. Note that it still may not preserve the exact same structure as your original data.

Replies are listed 'Best First'.
Re^2: XML::Simple "transforming data"
by Grundle (Scribe) on Mar 21, 2005 at 20:39 UTC
    I have considered this option, but the problem is that it will strip non-valid attributes, which is good, but the valid attributes will be taken out as well, and I would like to keep them in.

    Maybe I wasn't clear in my original description, but what I mean by "preserving the exact structure" includes valid attributes inside tags. This problem would be trivial if I could just flip NoAttr and move on.

    Thanks for the suggestion.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (13)
As of 2019-10-16 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?