http://www.perlmonks.org?node_id=1206971


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

The results of xml2XMLRules or dtd2XMLRules are just a starting point :-)

Sometimes they are enough, sometimes you decide to change them to ignore some tags, take just the content ignoring attributes or use an attribute as the hash key and sometimes you add custom rules that'll let you filter or massage the data further or handle the twigs of the XML.

Especially if the XML is much more complicated, it's better to start with one of them (preferably the later, if you do have a DTD) and then tweak the rules instead of starting with a clean plate.

This is also why I provide those two as executables, not primarily as methods to call right before the parsing.

Jenda
Enoch was right!
Enjoy the last years of Rome.