1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
Source: libxml-struct-perl
Section: perl
Priority: optional
Build-Depends:
debhelper,
libmodule-build-tiny-perl,
libmoo-perl <!nocheck>,
libtest-warn-perl <!nocheck>,
libxml-libxml-perl <!nocheck>,
perl,
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders:
Jonas Smedegaard <dr@jones.dk>,
Standards-Version: 4.3.0
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libxml-struct-perl.git
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libxml-struct-perl
Homepage: https://github.com/nichtich/XML-Struct
Testsuite: autopkgtest-pkg-perl
Rules-Requires-Root: no
Package: libxml-struct-perl
Architecture: all
Depends:
libmoo-perl,
libxml-libxml-perl,
${misc:Depends},
${perl:Depends},
Enhances:
libcatmandu-perl,
Description: represent XML as data structure preserving element order
XML::Struct implements a mapping between XML and Perl data structures.
By default, the mapping preserves element order,
so it also suits for "document-oriented" XML.
In short, an XML element is represented
as array reference with three parts:
.
[ $name => \%attributes, \@children ]
.
This data structure corresponds to the abstract data model
of MicroXML <http://www.w3.org/community/microxml/>,
a simplified subset of XML.
.
If your XML documents don't contain relevant attributes,
you can also choose to map to this format:
.
[ $name => \@children ]
.
Both parsing (with XML::Struct::Reader or function readXML)
and serializing (with XML::Struct::Writer or function writeXML)
are fully based on XML::LibXML,
so performance is better than XML::Simple
and similar to XML::LibXML::Simple.
|