Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: perl script to print xml data like this

by afresh1 (Hermit)
on Oct 04, 2011 at 17:43 UTC ( #929612=note: print w/replies, xml ) Need Help??


in reply to Re^2: perl script to print xml data like this
in thread perl script to print xml data like this

The error does not occur with the sample so the actual xml is apparently different than what you provided. To get rid of the sorting error, just don't sort the output.

14 foreach my $code ( keys %by_code ) {

If you need the output exactly as it was, you will need to use a solution other than XML::Simple. As I said:

It does not keep the exact XML formatting but that is something that is lost when XML::Simple parses it.
l8rZ,
--
andrew

Replies are listed 'Best First'.
Re^4: perl script to print xml data like this
by veerubiji (Sexton) on Oct 05, 2011 at 07:16 UTC

    thanks for your reply and suggestion i got my answer.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929612]
help
Chatterbox?
[shmem]: Discipulus: war/peace is a question of fuel gauge position...
[Discipulus]: yes i saw your cell brother..
[Discipulus]: but now fuel is cheap and they still make some war.
[Discipulus]: capitalism is able to go to war by cycle, even.
[shmem]: some? are you jokin' ?
[shmem]: fuel is only one fuel that fuels the fools... it is all about power and control - which NOBODY will have.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2017-04-29 22:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (534 votes). Check out past polls.