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