I'm not sure that I was completely clear on my description. As I go through the Dumper output, I have a different name/entry for each occurence of the {changing element name} element. I'm looking for recommendations regarding how to handle such occurrences.
I looked through the docs and have (to see the first occurrence) tried in the code: $data->{dataschemas}->{dataschema}->[0]->{attributes}->{attribute}} and $data->{dataschemas}->{dataschema}[0]->{attributes}->{attribute}} Neither worked and I'm not sure from the XML::Simple documentation what other options I have to identify the varying element name in the code. --- BW <[EMAIL PROTECTED]> wrote: > How (assuming it does) does XML::Simple deal with an > XML element whose value changes throughout the > course > of the Dumper output? > > XML::Simple code snippet: > $data->{dataschemas}->{dataschema}{changing element > name}->{attributes}->{attribute}} > > Dumper output snippet: > > (format adjusted for brevity): > { > 'dataschemas' => { > 'dataschema' => { > 'changing element name' => { > 'attributes' => { > 'attribute' => { [ > ... attributes here > ... > } > } > } > } > } > } > > If XML::Simple isn't the right module for the task, > which is a better one? I looked at the 'where to > from > here?' section of the XML::Simple doc to answer > this, > but none of the modules briefly described there seem > to be likely choices at this point. > > Thanks, > BW > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > -- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > <http://learn.perl.org/> > <http://learn.perl.org/first-response> > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>