|Think about Loose Coupling|
Using XML::Simple with nested arraysby c (Hermit)
|on Jul 04, 2002 at 23:36 UTC||Need Help??|
c has asked for the
wisdom of the Perl Monks concerning the following question:
I am using XML::Simple to parse a pretty non-complex xml file that deals with nodes on a network.
Now, I see how to grab the value of a field that has multiple choices. Such as edge2's loopbacks.
I have a decent idea of how to loop over all of the loopbacks for a given node, however how do I loop over all of the given nodes? Trying something like:
gives me an error saying that there is no reference to a hash. I can understand this error, but I'm not sure how to get past it to print out a list of all the known "nodes" in my xml file. My ultimate goal is to pass over the list of nodes and act upon then using the information held nested beneath them in the same xml file.