Gianni Ceccarelli > Text-Restructured-Writer-LibXML-0.01 > Text::Restructured::Writer::LibXML

Download:
Text-Restructured-Writer-LibXML-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Text::Restructured::Writer::LibXML

SYNOPSIS ^

  use Text::Restructured;
  use Text::Restructured::Writer::LibXML;

  my $parser=Text::Restructured->new($opts,'gino');
  my $dudom=$parser->Parse($input,$filename);
  my $xdoc=Text::Restructured::Writer::LibXML->new->ProcessDOM($dudom);

DESCRIPTION ^

This module implements a "Writer" for Text::Restructured, that instead of returning a string, returns a XML::LibXML DOM.

The DOM will have non-namespaced elements according to the docutils vocabulary, and namespcaed elements according to the MathML vocabulary.

This is probably the fastest way to transform a Text::Restructured::DOM structure into a proper XML DOM.

METHODS ^

new

Returns a new object.

xml_dom= ProcessDOM(docutils_dom)

Given an object of type Text::Restructured::DOM, processes it recursively and builds an XML DOM into a new document. Returns the document, or dies trying.

syntax highlighting: