HTTP::OAI::Metadata - Base class for data objects that contain DOM trees
use HTTP::OAI::Metadata; $xml = XML::LibXML::Document->new(); $xml = XML::LibXML->new->parse( ... ); $md = new HTTP::OAI::Metadata(); $md->dom($xml); $md = new HTTP::OAI::Metadata(dom=>$xml); print $md->dom->toString; my $dom = $md->dom(); # Return internal DOM tree
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.
To install HTTP::OAI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::OAI
CPAN shell
perl -MCPAN -e shell install HTTP::OAI
For more information on module installation, please visit the detailed CPAN module installation guide.