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

Re^5: Best XML library to validate XML from untrusted source

by ikegami (Pope)
on Oct 21, 2014 at 17:17 UTC ( #1104584=note: print w/replies, xml ) Need Help??


in reply to Re^4: Best XML library to validate XML from untrusted source
in thread Best XML library to validate XML from untrusted source

Nothing? What are you talking about? It validates the file as the OP requested.

...Actually, that's now what he requested. He requested

use XML::LibXML::Reader qw( XML_READER_TYPE_ENTITY_REFERENCE ); my $reader = XML::LibXML::Reader->new( location => $file_or_url, load_ext_dtd => 0, expand_entities => 0, ); while ($reader->read) { die if $reader->nodeType == XML_READER_TYPE_ENTITY_REFERENCE; }

What exactly is the problem???

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2020-09-24 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (132 votes). Check out past polls.

    Notices?