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

LibXML::Writer v0.0.1

Raku bindings to the libxml2 streaming writer

Authors

  • David Warring

License

Artistic-2.0

Dependencies

LibXML:ver<0.9.5+>

Test Dependencies

Provides

  • LibXML::Raw::TextWriter
  • LibXML::Writer
  • LibXML::Writer::Buffer
  • LibXML::Writer::Document
  • LibXML::Writer::File
  • LibXML::Writer::Node
  • LibXML::Writer::PushParser

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.