XML::Rabbit::Trait::XPathValueList - Multiple value xpath extractor trait
package MyXMLSyntaxNode; use Moose; with 'XML::Rabbit::RootNode'; has all_references => ( isa => 'ArrayRef[Str]', traits => [qw(XPathValueList)], xpath_query => '//@href|//@src', ); no Moose; __PACKAGE__->meta->make_immutable(); 1;
This module provides the extraction of primitive values from an XML node based on an XPath query.
See XML::Rabbit for a more complete example.
Returns a coderef that is run to build the default value of the parent attribute. Read Only.
Robin Smidsrød <firstname.lastname@example.org>
This software is copyright (c) 2011 by Robin Smidsrød.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.