XML::Checker::Parser 1.02
Sponsored Links
XML::Checker::Parser 1.02 Ranking & Summary
File size:
0.36 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1226
Date added:
2006-06-15
Publisher:
Enno Derksen
XML::Checker::Parser 1.02 description
XML::Checker::Parser is an XML::Parser that validates at parse time.
SYNOPSIS
use XML::Checker::Parser;
my %expat_options = (KeepCDATA => 1,
Handlers => [ Unparsed => &my_Unparsed_handler ]);
my $parser = new XML::Checker::Parser (%expat_options);
eval {
local $XML::Checker::FAIL = &my_fail;
$parser->parsefile ("fail.xml");
};
if ($@) {
# Either XML::Parser (expat) threw an exception or my_fail() died.
... your error handling code here ...
}
# Throws an exception (with die) when an error is encountered, this
# will stop the parsing process.
# Dont die if a warning or info message is encountered, just print a message.
sub my_fail {
my $code = shift;
die XML::Checker::error_string ($code, @_) if $code < 200;
XML::Checker::print_error ($code, @_);
}
XML::Checker::Parser extends XML::Parser
I hope the example in the SYNOPSIS says it all, just use XML::Checker::Parser as if it were an XML::Parser. See XML::Parser for the supported (expat) options.
You can also derive your parser from XML::Checker::Parser instead of from XML::Parser. All you should have to do is replace:
package MyParser;
@ISA = qw( XML::Parser );
with:
package MyParser;
@ISA = qw( XML::Checker::Parser );
SYNOPSIS
use XML::Checker::Parser;
my %expat_options = (KeepCDATA => 1,
Handlers => [ Unparsed => &my_Unparsed_handler ]);
my $parser = new XML::Checker::Parser (%expat_options);
eval {
local $XML::Checker::FAIL = &my_fail;
$parser->parsefile ("fail.xml");
};
if ($@) {
# Either XML::Parser (expat) threw an exception or my_fail() died.
... your error handling code here ...
}
# Throws an exception (with die) when an error is encountered, this
# will stop the parsing process.
# Dont die if a warning or info message is encountered, just print a message.
sub my_fail {
my $code = shift;
die XML::Checker::error_string ($code, @_) if $code < 200;
XML::Checker::print_error ($code, @_);
}
XML::Checker::Parser extends XML::Parser
I hope the example in the SYNOPSIS says it all, just use XML::Checker::Parser as if it were an XML::Parser. See XML::Parser for the supported (expat) options.
You can also derive your parser from XML::Checker::Parser instead of from XML::Parser. All you should have to do is replace:
package MyParser;
@ISA = qw( XML::Parser );
with:
package MyParser;
@ISA = qw( XML::Checker::Parser );
XML::Checker::Parser 1.02 Screenshot
XML::Checker::Parser 1.02 Keywords
XML
Parser 1.02
parse time
code
validates
time
parse
1.02
XML::Checker::Parser
XMLCheckerParser
XML::Checker::Parser 1.02
Libraries
Programming
Bookmark XML::Checker::Parser 1.02
XML::Checker::Parser 1.02 Copyright
WareSeeker periodically updates pricing and software information of XML::Checker::Parser 1.02 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of XML::Checker::Parser 1.02 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
XML Tree Object Model Parser is an easy to use XML parser. Free Download
XML::Checker is a Perl module for validating XML. Free Download
XML::RSS::Parser is a liberal object-oriented parser for RSS feeds. Free Download
Test::Parser is a collection of parsers for different test output file formats. Free Download
XML::Parser is a perl module for parsing XML documents. Free Download
XML::Xerces::DOMParse is a Perl module for parsing DOMs. Free Download
PXR::Parser is a Pure Perl SAX XML Push Parser. Free Download
ShaniXmlParser is an XML/HTML DOM/SAX parser that can be validating. Free Download
Latest Software
Popular Software
Favourite Software