Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Best XML library to validate XML from untrusted sourceby Jenda (Abbot) |
on Oct 20, 2014 at 15:07 UTC ( [id://1104450]=note: print w/replies, xml ) | Need Help?? |
XML::LibXML::Reader is way too low-level and while the pull style tends to lead to a (very slightly) more readable code than ordinary, node-level push, it's still nothing I would dare to recommend ... to anyone. XML::Rules and XML::Twig give you the file in bite sized chunks which IMNSHO works much better than forcing a decomposition to individual atoms. Speaking of XML::Rules ... it's based on XML::Parser::Expat and allows setting its handlers so I think setting the Expat's ExternEnt to your handler should provide vsespb with the protection he's after. Jenda
In Section
Seekers of Perl Wisdom
|
|