Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: XML validating (no DTD)

by ikegami (Patriarch)
on Sep 02, 2004 at 15:57 UTC ( [id://387954]=note: print w/replies, xml ) Need Help??


in reply to XML validating (no DTD)

Change

$xp->parsefile($xml_file); local $XML::Checker::FAIL = \&my_fail;

to

local $XML::Checker::FAIL = \&my_fail; $xp->parsefile($xml_file);

It does no good to set the error handler after the checking is done.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-03-29 00:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found