Need some help with XMLin

[email protected] (Vasant Kumar)
Newsgroups perl.beginners
Organization http://groups.google.com
Message-ID <dbb9339c-95fc-45b5-becf-4a1093fc72e6@q24g2000prf.googlegroups.com>
Hi,
I'm using PERL for the first time, and I need to parse an XML
Document.

Essentially we have a file that's structures like this

<A>
<B>
<C></C>
<C></C>
<C></C>
<C></C>
<C></C>
<C></C>
</B>
</A>

now when I do something like
$data = XMLin($XML, forcearray => ["C"]);

It has something similar to

$VAR1 = { B => { C => [ {1}, {2}. {3} ]}

Now accessing B is no problem, but I want to access the values in C..
do you know how this might be possible?

Thank you,
Vasant
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.