-
-
09 Sep 1999 23:06:59 UTC
- Distribution: XML-Grove
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (3)
- Testers
- Kwalitee
Bus factor: 0- 87.50% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (26.7KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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>
Module Install Instructions
To install XML::Grove, copy and paste the appropriate command in to your terminal.
cpanm XML::Grove
perl -MCPAN -e shell install XML::Grove
For more information on module installation, please visit the detailed CPAN module installation guide.