Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

XML::Grove::IDs

Name XML::Grove::IDs
Version
Located at /usr/share/perl5
File /usr/share/perl5/XML/Grove/IDs.pm
Is Core No
Search CPAN for this module XML::Grove::IDs
Documentation XML::Grove::IDs
Module Details XML::Grove::IDs

NAME

XML::Grove::IDs - return an index of `id' attributes in a grove


SYNOPSIS

 use XML::Grove::IDs;
 # Using get_ids method on XML::Grove::Document or XML::Grove::Element:
 $hash = $grove_object->get_ids($attr_name, $elements);
 # Using an XML::Grove::IDs instance:
 $indexer = XML::Grove::IDs->new($attr_name, $elements);
 my $hash = {};
 $grove_object->accept($indexer, $hash);


DESCRIPTION

XML::Grove::IDs returns a hash index of all nodes in a grove with an `id' attribute. The keys of the hash are the ID attribute value and the value at that key is the element. `$attr_name' and `$elements' are optional. The attribute name defaults to `id' if `$attr_name' is not supplied. Indexing can be restricted to only certain elements, by name, by providing a hash containing NAME=>1 values.


AUTHOR

Ken MacLeod, ken@bitsko.slc.ut.us


SEE ALSO

perl(1), XML::Grove(3), Data::Grove::Visitor(3)

Extensible Markup Language (XML) <http://www.w3c.org/XML>

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026