Need some help with XMLin



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

.



Relevant Pages

  • Parsing XML data as it arrives from LWP call
    ... I am trying to improve the performance of a Perl application that uses LWP ... I would like to parse the resulting XML data as it's being returned as ... Build request XML input parms ...
    (comp.lang.perl.modules)
  • Re: Perl XML parsing
    ... > I have several XML output files that I need to parse through perl to ...
    (comp.lang.perl.misc)
  • need help for this project......
    ... I am new to XML and PERL and I have a few questions the answers to ... user and makes an XML file from the fetched data. ... will scrape data from the T-Mobile web page to an XML file. ...
    (comp.lang.perl.misc)
  • Re: Help with validating XML (DTD or Schema) with PERL
    ... to handle DTD or Schemas? ... Amongst the many things I've happily & successfully done with Perl & ... parsing XML is not one. ... original thought I would easily find a FILTER to handle DTD or Schema ...
    (comp.lang.perl.modules)
  • Re: Sending existing XML document to a document-literal web servic
    ... So the WSDL defines a type ... I don't want to parse the existing document and load the productOrderType ... My understanding is that you can use XmlSerializer to read the XML document ...
    (microsoft.public.dotnet.framework.aspnet.webservices)