This is the result after the looping.

print Dumper($self);
$VAR1 = bless( { 'TradingStatistics::SharesOutstandingTotal' => bless( + { 'SubFields::content' => undef, 'SubFields::Description' => undef, 'SubFields::Type' => undef, 'SubFields::modDate' => undef }, 'SubFields' ), 'TradingStatistics::ShortInterestRatio' => bless( { 'SubFields::content' => undef, 'SubFields::Description' => undef, 'SubFields::Type' => undef, 'SubFields::modDate' => undef .........
Here's the tree slightly scrubed.

print Dumper($tree);
$VAR1 = { 'TradingStatisticsIRMXL' => { 'TradingStatistics' => { 'HalfYearChange' => {}, 'InstitutionsHoldingShares' => {}, 'YearChange' => {}, ..... $VAR1 = { 'CorpMasterID' => '', 'TradingStatisticsIRXML' => { 'TradingStatistics' => { 'HalfYearChange' => { 'Description' => '26-Week Price Percent Change', 'content' => ', 'Type' => 'PriceAndVolume' }, 'InstitutionsHoldingShares' => { 'Description' => 'Institutions Holding Shares', 'content' 'Type' => 'InstitutionalHoldings' ..... },
As you can see there's a new hash inserted into the top of the tree that looks like the struct that I'm trying to build but without data, and the struct doesn't contaiin any either.

This is where I'm at a loss since my previou module is almost a duplicate except that it use a single level struct, with one loop.

In reply to Re: Re: Re: Re: Need Help Understanding Parsing XML into multi level struck by ralibm
in thread Need Help Understanding Parsing XML into multi level struck by ralibm

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.