Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: XML::Rules parsing inside out?

by Jenda (Abbot)
on Jan 09, 2018 at 13:03 UTC ( #1206971=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1206971]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2021-02-27 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?