---
name: "HTML::HTML5::Builder::Document"
section: "3pm"
platform: "linux"
package: "libhtml-html5-builder-perl"
version: "0.004-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTML::HTML5::Builder::Document"
---

# HTML::HTML5::Builder::Document(3pm)

pretty trivial subclass of XML::LibXML::Document

## NAME

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

## DESCRIPTION

`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

  ## SEE ALSO

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

## AUTHOR

Toby Inkster \<tobyink@cpan.org\>.

## COPYRIGHT AND LICENCE

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.

## 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.
