Tim Brody > HTTP-OAI-3.28 > HTTP::OAI::Metadata

Download:
HTTP-OAI-3.28.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  7
Open  1
View/Report Bugs
Source   Latest Release: HTTP-OAI-4.03

NAME ^

HTTP::OAI::Metadata - Base class for data objects that contain DOM trees

SYNOPSIS ^

        use HTTP::OAI::Metadata;

        $xml = XML::LibXML::Document->new();
        $xml = XML::LibXML->new->parse( ... );

        $md = new HTTP::OAI::Metadata(dom=>$xml);

        print $md->dom->toString;

        my $dom = $md->dom(); # Return internal DOM tree

METHODS ^

$md->dom( [$dom] )

Return and optionally set the XML DOM object that contains the actual metadata. If you intend to use the generate() method $dom must be a XML_DOCUMENT_NODE.

syntax highlighting: