DOKK / manpages / debian 12 / libhtml-html5-builder-perl / HTML::HTML5::Builder::Document.3pm.en
HTML::HTML5::Builder::Document(3pm) User Contributed Perl Documentation HTML::HTML5::Builder::Document(3pm)

HTML::HTML5::Builder::Document - pretty trivial subclass of XML::LibXML::Document

"HTML::HTML5::Builder::html()" returns an "HTML::HTML5::Builder::Document" object. This inherits from "XML::LibXML::Document", but overloads stringification using "HTML::HTML5::Writer".

A non-exhaustive list of interesting methods provided by "HTML::HTML5::Builder::Document" objects:

"toString" - outputs XML
"toStringHTML" - outputs HTML
"documentElement" - returns the root element as an "XML::LibXML::Element"
"findnodes" - search using XPath

HTML::HTML5::Builder, XML::LibXML::Document.

Toby Inkster <tobyink@cpan.org>.

This software is copyright (c) 2011 by 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.

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.

2022-06-14 perl v5.34.0