Writer
use LibXML::Writer::Buffer; # write to a string
Methods
Indentation
Document Methods
Element Methods
$bytes-written = $writer.writeText: 'A&B'; # output: A&B
$bytes-written = $writer.writeCDATA: 'A&B'; # output: <![CDATA[A&B]]>
DTD Methods
The methods below can then be used to add definitions for DTD Elements, Attribute Lists, Entities and Notations, before calling `endDTD`.