NAME
WebService::ReutersConnect::XMLDocument - A decoration of XML::LibXML::Document with extra gizmos
SYNOPSIS
This basically acts as an XML::LibXML::Document execpts it has the following extra attributes:
xml_namespaces
Returns a Array Ref list of all XML::LibXML::Namespace included in this document. This is mainly for internal use.
usage:
foreach my $ns_node ( @{$this->xml_namespaces() ){
## Print some stuff.
}
xml_xpath
A ready to serve instance of <XML::LibXML::XPathContext> with the namespaces preregistered.
NOTE: The default namespace is 'rcx' (rEUTERS cONNECT xML).
Usage:
print( $this->xml_xpath->findvalue('//rcx::headline') );
print( $this->xml_xpath->findvalue('//rcx::description') );