Robin Smidsrød > XML-Rabbit-0.2.1 > XML::Rabbit::Role::Document

Download:
XML-Rabbit-0.2.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.2.1   Source   Latest Release: XML-Rabbit-0.4.0

NAME ^

XML::Rabbit::Role::Document - XML Document base class

VERSION ^

version 0.2.1

SYNOPSIS ^

    package MyXMLSyntax;
    use Moose;
    with 'XML::Rabbit::Role::Document';

    sub root_node {
        return shift->_document->documentElement();
    }

DESCRIPTION ^

This module provides the base document attribute used to hold the parsed XML content.

See XML::Rabbit for a more complete example.

ATTRIBUTES ^

_file

A string representing the path to the file that contains the XML document data. Read Only. Constructor parameter is file.

_fh

A glob reference / file handle that points to the XML document data. Read Only. Constructor parameter is fh.

_xml

A binary string containing the XML document data. Read Only. Constructor parameter is xml.

_document

An instance of an XML::LibXML::Document class. Read Only. Constructor parameter is dom.

METHODS ^

dump_document_xml

Dumps the XML of the entire document as a native perl string.

AUTHOR ^

Robin Smidsrød <robin@smidsrod.no>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Robin Smidsrød.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: