Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

html::html5::parser::error(3pm) [debian man page]

HTML::HTML5::Parser::Error(3pm) 			User Contributed Perl Documentation			   HTML::HTML5::Parser::Error(3pm)

NAME
HTML::HTML5::Parser::Error - an error that occured during parsing DESCRIPTION
Note that HTML::HTML5::Parser is not a validation tool, and there are many classes of error that it does not care about, so will not raise. The "error_handler" and "errors" methods of "HTML::HTML5::Parser" generate "HTML::HTML5::Parser::Error" objects. "HTML::HTML5::Parser::Error" overloads stringification, so can be printed, matched against regular expressions, etc. Constructor "new(level=>$level, type=>$type, token=>$token, ...)" Constructs a new "HTML::HTML5::Parser::Error" object. Methods "level" Returns the level of error. ('MUST', 'SHOULD', 'WARN', 'INFO' or undef.) "layer" Returns the parsing layer involved, often undef. e.g. 'encode'. "type" Returns the type of error as a string. "tag_name" Returns the tag name (if any). "source_line" ($line, $col) = $error->source_line(); $line = $error->source_line; In scalar context, "source_line" returns the line number of the source code that triggered the error. In list context, returns a line/column pair. (Tab characters count as one column, not eight.) "to_string" Returns a friendly error string. SEE ALSO
HTML::HTML5::Parser. AUTHOR
Toby Inkster, <tobyink@cpan.org> COPYRIGHT AND LICENSE
Copyright (C) 2011-2012 by Toby Inkster This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available. perl v5.14.2 2012-03-19 HTML::HTML5::Parser::Error(3pm)

Check Out this Related Man Page

RDF::RDFa::Parser::OpenDocumentObjectModel(3pm) 	User Contributed Perl Documentation	   RDF::RDFa::Parser::OpenDocumentObjectModel(3pm)

NAME
RDF::RDFa::Parser::OpenDocumentObjectModel - DOM representation of an OpenDocument Format 1.2 file DESCRIPTION
You should hopefully not need to use this module to be able to use RDF::RDFa::Parser. It's used internally by the parser to deal with OpenDocument Format input. This class provides a "new" constructor and "parse_file", "parse_fh" and "parse_string" methods offering rought compatibility with the parsing interface described in XML::LibXML::Parser. It represents an OpenDocument Format 1.2 file (internally a ZIP file containing various XML, RDF/XML and other files) into a single XML::LibXML::Document with a root element "od:Document". The root element has several child elements with tag names "od:Data" and "od:Meta" which each contain a single child corresponding to the root element of (respectively) an XML or RDF/XML file found inside the ZIP. ("od:Data" and "od:Meta" elements each have a "file" attribute indicating which file.) This representation is necessarily different to the "Flat XML" format offered by OpenOffice - trust me. The "od" namespace URI is http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Parser/opendocument-dom-wrapper <http://purl.org/NET/cpan- uri/dist/RDF-RDFa-Parser/opendocument-dom-wrapper>. SEE ALSO
RDF::RDFa::Parser. XML::LibXML::Parser, HTML::HTML5::Parser. AUTHOR
Toby Inkster <tobyink@cpan.org>. COPYRIGHT AND LICENCE
Copyright 2008-2012 Toby Inkster This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. perl v5.14.2 2012-06-05 RDF::RDFa::Parser::OpenDocumentObjectModel(3pm)
Man Page