in reply to XML::Rules parsing inside out?
XML::Rules is infinitely better than XML::Simple. You don't seem to understand that a tag is not fully 'parsed' until the end of the tag is reached. If you want to catch the start of the tag (along with its attributes), then use a start tag rule (either prefix the tag with "^", or use the 'start_rules' argument).
This is sensible because you cannot pass the contents of inner tags up to the outer tag rules (which is possible with XML::Rules) until the end tag of the outer XML tag is reached.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: XML::Rules parsing inside out?
by runrig (Abbot) on Dec 07, 2017 at 22:38 UTC | |
Re^2: XML::Rules parsing inside out?
by bfdi533 (Friar) on Dec 07, 2017 at 23:07 UTC | |
by Anonymous Monk on Dec 08, 2017 at 01:26 UTC | |
by runrig (Abbot) on Dec 08, 2017 at 17:35 UTC |
In Section
Seekers of Perl Wisdom