Web::DOM::XMLSerializer
The DOM XMLSerializer
object
DESCRIPTION
The Web::DOM::XMLSerializer
class implements the DOM XMLSerializer
interface.
METHODS
The class has following methods:
$serializer = new Web::DOM::XMLSerializer
-
Create a new
XMLSerializer
object. [DOMPARSING] $string = $serializer->serialize_to_string ($node)
-
Serialize the specified node into a character string (HTML or XML fragment, depending on the type of the document). [DOMPARSING] [MANAKAI]
If the document is an XML document and the node can't be serialized into the well-formed XML fragment, the method does not throw and does return an ill-formed XML fragment instead. This is a willful violation to the HTML Living Standard, to match current browsers' behavior. Future version of the module might throw an exception if browsers start to throw an exception.
See also "DEPENDENCY" in Web::DOM.
SPECIFICATIONS
- DOMPARSING
-
DOM Parsing and Serialization Standard
<http://domparsing.spec.whatwg.org/>
. - MANAKAI
-
manakai DOM Extensions
<http://suika.fam.cx/~wakaba/wiki/sw/n/manakai++DOM%20Extensions>
.
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.