I suppose the real reason I do not want to use the rules it provides is that is is then no better than XML::Simple.

The "real" XML is much more complicated and means I have to reference items 6 or 7 levels deep with some labels as long as 38 characters long. So, it would be something like $hash->{'SomeVeryLongCollectionName'}->{'AnotherLowerLevelOfItems'}->{'Summary'}->{'Collections'}->{'Collection'}->{'Item'}->{'Value'} which is VERY unattractive.

The use of XML::Rules allows me, if done properly, to build my own hash and not have to deal with all of those levels and structure which are just unwieldly.

And using the rules as specified, and as you showed in your example, I still have to have the full, very long path to deal with in order to figure out which item I am dealing with but maybe gets me closer. I will try some variations of your code and see where it gets me ...


In reply to Re^4: XML::Rules parsing inside out? by bfdi533
in thread XML::Rules parsing inside out? by bfdi533

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.