Name : perl-Data-Stag
| |
Version : 0.14
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp151.1.1
| Date : 2018-12-03 22:59:46
|
Group : Development/Libraries/Perl
| Source RPM : perl-Data-Stag-0.14-lp151.1.1.src.rpm
|
Size : 0.36 MB
| |
Packager : (none)
| |
Summary : Structured Tags datastructures
|
Description :
This module is for manipulating data as hierarchical tag/value pairs (Structured TAGs or Simple Tree AGgreggates). These datastructures can be represented as nested arrays, which have the advantage of being native to perl. A simple example is shown below:
[ person=> [ [ family_name => $family_name ], [ given_name => $given_name ], [ phone_no => $phone_no ] ] ],
the Data::Stag manpage uses a subset of XML for import and export. This means the module can also be used as a general XML parser/writer (with certain caveats).
The above set of structured tags can be represented in XML as
< person> < family_name>...< /family_name> < given_name>...< /given_name> < phone_no>...< /phone_no> < /person>
This datastructure can be examined, manipulated and exported using Stag functions or methods:
$document = Data::Stag->parse($file); AATTpersons = $document->find(\'person\'); foreach my $person (AATTperson) { $person->set(\'full_name\', $person->sget(\'given_name\') . \' \' . $person->sget(\'family_name\')); }
Advanced querying is performed by passing functions, for example:
AATTpersons = $document->where(\'person\', sub {shift->sget(\'family_name\') =~ /^A/});
One of the things that marks this module out against other XML modules is this emphasis on a *functional* approach as an obect-oriented or procedural approach.
For full information on the stag project, see the http://stag.sourceforge.net manpage
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_Leap_15.1/x86_64 |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
perl(Data::Stag)
perl(Data::Stag::Arr2HTML)
perl(Data::Stag::Base)
perl(Data::Stag::BaseGenerator)
perl(Data::Stag::BaseHandler)
perl(Data::Stag::ChainHandler)
perl(Data::Stag::DTDWriter)
perl(Data::Stag::GraphHandler)
perl(Data::Stag::HashDB)
perl(Data::Stag::ITextParser)
perl(Data::Stag::ITextWriter)
perl(Data::Stag::IndentParser)
perl(Data::Stag::IndentWriter)
perl(Data::Stag::JSONWriter)
perl(Data::Stag::PerlWriter)
perl(Data::Stag::PodParser)
perl(Data::Stag::SAX2Stag)
perl(Data::Stag::Simple)
perl(Data::Stag::StagDB)
perl(Data::Stag::StagI)
perl(Data::Stag::StagImpl)
perl(Data::Stag::SxprParser)
perl(Data::Stag::SxprWriter)
perl(Data::Stag::Util)
perl(Data::Stag::Writer)
perl(Data::Stag::XMLParser)
perl(Data::Stag::XMLWriter)
perl(Data::Stag::XSLHandler)
perl(Data::Stag::XSLTHandler)
perl(Data::Stag::null)
perl-Data-Stag
perl-Data-Stag(x86-64)
Requires :