XML2::Element - XML Element level control
Element base class represents an element at the XML level. More specific element classes control the xml functionality which is abstracted from the xml.
Martin Owens <doctormo@cpan.org> (Fork) Ronan Oger <ronan@roasp.com>
perl(1),XML2,XML2::Parser
Returns the element and all it's sub elements as a serialised xml string
my $xml = $element->xmlify;
Returns an element by XPath normal XPath rules apply.
Inherited method, returns attribute as new object or undef.
$attribute = $element->_attribute_handle( $attribute_name, $ns );
Used by XML2::DOM for auto attribute object handlers.
Inherited method, returns true if attribute has an object.
Inherited method, returns true if the element can contain sub elements
Inherited method, returns true if the element can have attributes.
XML ELement serialisation, Open Tag.
XML ELement serialisation, Self contained tag.
XML ELement serialisation, Close Tag.
XML ELement serialisation, Attributes.
To install XML2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML2
CPAN shell
perl -MCPAN -e shell install XML2
For more information on module installation, please visit the detailed CPAN module installation guide.