Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
perl-XML-Parser-Lite-Tree
perl-XML-Parser-Lite-Tree.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-XML-Parser-Lite-Tree.spec of Package perl-XML-Parser-Lite-Tree
# # spec file for package perl-XML-Parser-Lite-Tree (Version 0.14) # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-XML-Parser-Lite-Tree Version: 0.14 Release: 1 License: CHECK(GPL+ or Artistic) %define cpan_name XML-Parser-Lite-Tree Summary: Lightweight XML tree builder Url: http://search.cpan.org/dist/XML-Parser-Lite-Tree/ Group: Development/Libraries/Perl Source: http://www.cpan.org/authors/id/I/IA/IAMCAL/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros %{perl_requires} %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. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean %{__rm} -rf %{buildroot} %files -f %{name}.files %defattr(-,root,root,755) %doc README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor