XML::Rabbit::Role::Node(3)

NAME
XML::Rabbit::Role::Node - Base role for all nodes

VERSION
version 0.4.1

SYNOPSIS
See XML::Rabbit::RootNode or XML::Rabbit::Node for examples.

DESCRIPTION
This module provides attributes and methods common to all nodes.

See XML::Rabbit for a more complete example.

ATTRIBUTES

  node
An instance of a XML::LibXML::Node class representing the a node in an XML document. Read Only.

  xpc
An instance of a XML::LibXML::XPathContext class initialized with the "node" attribute. Read Only.

  namespace_map
A HashRef of strings that defines the prefix/namespace XML mappings for the XPath parser. Usually overriden in a subclass like this:

    has '+namespace_map' => (
        default => sub { {
            myprefix      => "http://my.example.com",
            myotherprefix => "http://other.example2.org",
        } },
    );

METHODS

  dump_xml
Dumps the XML of the current node as a native perl string.

AUTHOR
Robin Smidsrød <robin@smidsrod.no>

COPYRIGHT AND LICENSE
This software is copyright (c) 2015 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.