NAME

XML::Chain::Element - helper class for XML::Chain representing a single element

SYNOPSIS

xc('body')->c('h1')->t('title')->root

DESCRIPTION

Returned by "single" in XML::Chain::Selector.

METHODS

new

Creates a new element wrapper.

name

Returns the element name.

as_xml_libxml

Returns an XML::LibXML::Element object.

current_elements

Returns the element wrapped in an array reference for internal consistency with XML::Chain::Selector. Selectors always work with arrays of elements, and Element overrides this to return its single element as a 1-element array.

XML::Chain::Selector methods

All XML::Chain::Selector methods work here as well.

AUTHOR

Jozef Kutej

COPYRIGHT & LICENSE

Copyright 2017 Jozef Kutej, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.