Name : perl-XML-Parser-Lite-Tree
| |
Version : 0.14
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 17:16:59
|
Group : Development/Libraries/Perl
| Source RPM : perl-XML-Parser-Lite-Tree-0.14-lp155.1.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Lightweight XML tree builder
|
Description :
This is a singleton class for parsing XML into a tree structure. How does this differ from other XML tree generators? By using XML::Parser::Lite, which is a pure perl XML parser. Using this module you can tree-ify simple XML without having to compile any C.
For example, the following XML:
< foo woo=\"yay\">< bar a=\"b\" c=\"d\" />hoopla< /foo>
Parses into the following tree:
\'children\' => [ { \'children\' => [ { \'children\' => [], \'attributes\' => { \'a\' => \'b\', \'c\' => \'d\' }, \'type\' => \'element\', \'name\' => \'bar\' }, { \'content\' => \'hoopla\', \'type\' => \'text\' } ], \'attributes\' => { \'woo\' => \'yay\' }, \'type\' => \'element\', \'name\' => \'foo\' } ], \'type\' => \'root\' };
Each node contains a \'type\' key, one of \'root\', \'element\' and \'text\'. \'root\' is the document root, and only contains an array ref \'children\'. \'element\' represents a normal tag, and contains an array ref \'children\', a hash ref \'attributes\' and a string \'name\'. \'text\' nodes contain only a \'content\' string.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-X/15.5/noarch |