dmaranan has asked for the wisdom of the Perl Monks concerning the following question:
Using XMLin how can I access the 2nd MinorItem (Suitcase). I've read through XML::Simple documentation, but I just don't understand the ForceArray options. Also, there are no attributes to the XML tags.<SuperItem> <UserID>1234</UserID> <MajorItems> <MinorItem> <Item>Box</Item> </MinorItem> </MajorItems> <MajorItems> <MinorItem> <Item>Suitcase</Item> </MinorItem> </MajorItems> </SuperItem> <br>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML: Simple - nested XML data
by CountZero (Bishop) on Dec 28, 2007 at 00:05 UTC | |
by PipTigger (Hermit) on Dec 28, 2007 at 05:18 UTC | |
|
Re: XML: Simple - nested XML data
by runrig (Abbot) on Dec 27, 2007 at 23:44 UTC | |
by dmaranan (Acolyte) on Dec 28, 2007 at 03:17 UTC | |
by bobf (Monsignor) on Dec 28, 2007 at 03:52 UTC | |
by dmaranan (Acolyte) on Dec 28, 2007 at 15:04 UTC | |
|
Re: XML: Simple - nested XML data
by gube (Parson) on Dec 28, 2007 at 05:37 UTC |