traveler has asked for the wisdom of the Perl Monks concerning the following question:
I can change the flag and list items to look like <item type="flag"... etc.<tabs> <tab name="foo"> <flag name="one" params="123">First</flag> <list name="two" params="456">Second</list> <list name="three" params="abc">Third</list> <other>stuff</other> </tab> <tab name="bar"> ... </tab> </tabs>
I want to be able to parse this XML along the lines of XML::Simple, but I need to know the order of "one", "two" and "three". Since XML::Simple puts them in a hash, the order is lost. I would not mind an array of hashes with the flag and list items, but I haven't been able to force that. I'd prefer not to have the user have to put in order="n" for each of these.
Any help with a library or even an XML redesign would be appreciated. --traveler
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: Ordered XML items (XML::Simple?)
by jeffa (Bishop) on Jan 17, 2003 at 16:43 UTC | |
by traveler (Parson) on Jan 17, 2003 at 16:55 UTC | |
by jeffa (Bishop) on Jan 17, 2003 at 17:08 UTC | |
by traveler (Parson) on Jan 17, 2003 at 17:13 UTC | |
|
Re: Ordered XML items (XML::Simple?)
by grantm (Parson) on Jan 17, 2003 at 18:43 UTC | |
by traveler (Parson) on Jan 17, 2003 at 22:20 UTC | |
|
Re: Ordered XML items (XML::Simple?)
by runrig (Abbot) on Jan 17, 2003 at 19:21 UTC |