Web::DOM::Parser
The DOM DOMParser object
DESCRIPTION
The Web::DOM::Parser class implements the DOM DOMParser interface.
METHODS
The class has following methods:
$parser = new Web::DOM::Parser-
Create a new
DOMParserobject. [DOMPARSING] $doc = $parser->parse_from_string ($string, $type)-
Parse the given character string as an HTML or XML document and return the Web::DOM::Document object for the document. The second argument must specify the MIME type of the document, which is one of followings:
text/html,text/xml,application/xml,application/xhtml+xml, orimages/svg+xml. If the document is an XML document and is not well-formed, a short document containing the error message is returned instead. [DOMPARSING]See also "DEPENDENCY" in Web::DOM.
SPECIFICATION
- DOMPARSING
-
DOM Parsing and Serialization Standard
<http://domparsing.spec.whatwg.org/>.
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2013 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.