uzzikie has asked for the wisdom of the Perl Monks concerning the following question:
hi Monks,
I have to display several XML files in one page which XML::Simple does a good job of parsing them.
However, the XML is in one continuous string like
I wonder what can i do to format them nicely so that it is more readable.
thanks
I have to display several XML files in one page which XML::Simple does a good job of parsing them.
However, the XML is in one continuous string like
as you can see, not very human friendly (and that is just a small fragment!)...<?xml version="1.0"?> <AIRAVAALABILTY> <AIRAVL> <AIRAVL012U>01MAY</AIR +AVL012U> <AIRAVL0145>SIN</AIRAVL0145> <AIRAVL018B>HKG</AIRAVL018B> <A +IRAVL007V>Y</AIRAVL007V> <AIRAVL012G></AIRAVL012G> </AIRAVL> </AIRAVA +ALABILTY>
I wonder what can i do to format them nicely so that it is more readable.
thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Indenting XML
by Zaxo (Archbishop) on Feb 21, 2003 at 03:28 UTC | |
Re: Indenting XML
by Mr_Person (Hermit) on Feb 21, 2003 at 03:10 UTC | |
Re: Indenting XML
by uzzikie (Sexton) on Feb 21, 2003 at 06:07 UTC | |
by extremely (Priest) on Feb 21, 2003 at 06:40 UTC | |
Re: Indenting XML
by mirod (Canon) on Feb 21, 2003 at 06:14 UTC | |
Re: Indenting XML
by Zero_Flop (Pilgrim) on Feb 21, 2003 at 04:48 UTC | |
Re: Indenting XML
by graff (Chancellor) on Feb 21, 2003 at 03:23 UTC | |
Re: Indenting XML
by TStanley (Canon) on Feb 21, 2003 at 20:13 UTC | |
Re: Indenting XML
by hardburn (Abbot) on Feb 21, 2003 at 17:30 UTC | |
by mirod (Canon) on Feb 21, 2003 at 17:50 UTC |
Back to
Seekers of Perl Wisdom