It's hard to give you an advice if we do not know what do you plan to do with the data from the XML and/or how much of the data do you even plan to use!

Apart from the modules others already suggested you might try XML::Rules. (Yeah, it's mine, if I don't advertise it, no one will.) It'll allow you to filter the XML as it's being parsed so then you end up with only the stuff you are interested in instead of a huuuuge, deep tree containing mostly stuff you have no use for and that only occupies the memory and maybe even forces your computer to start swapping memory.

You can think of XML::Rules as XML::Simple on steroids, in XML::Simple you can say that you want these tags to be represented as arrays even if there is just one and to use an attribute as the hash key, but that's about it. XML::Rules will allow you to specify that for this tag you want just the content, for that one just this attribute, that you only want the dat in this tag if the attribute foo's value is 'bar', etc. etc. etc.


In reply to Re: XML::Simple help by Jenda
in thread XML::Simple help by Viki@Stag

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.