File perl-XML-Twig.spec of Package perl-XML-Twig

# spec file for package perl-XML-Twig (Version 3.32 )
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via

# norootforbuild

Name:           perl-XML-Twig
Version:        3.32 
Release:        1
Requires:       perl = %{perl_version}
Requires:       perl-XML-Parser
BuildRequires:  perl-XML-Parser
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic License
Summary:        Tree interface to XML documents allowing processing chunk by chunk of huge documents
Source:         XML-Twig-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

XML::Twig is (yet another!) XML transformation module.

Its strong points: can be used to process huge documents while still
being in tree mode; not bound by DOM or SAX, so it is very perlish and
offers a very comprehensive set of methods; simple to use; DWIMs as
much as possible

What it doesn't offer: full SAX support (it can export SAX, but only
reads XML), full XPath support (unless you use XML::Twig::XPath), nor
DOM support.

Other drawbacks: it is a big module, and with over 500 methods
available it can be a bit overwhelming. A good starting point is the
tutorial at In fact the
whole XML::Twig page at has plenty of
information to get you started with XML::Twig

    Michel Rodriguez <>

%setup -q -n XML-Twig-%{version}

perl Makefile.PL

make test



%doc Changes README
%doc %{_mandir}/man?/*
* Wed Nov 21 2007 -
- update to 3.32
  * bugfixes, test fixes
  * fixed a couple of bugs in namespace handling
  * added the XML::Twig::Elt fields method which returns a list of
  * added the normalize method in XML::Twig and XML::Twig::Elt
  * added the indented_a / cvs format for pretty_print,
  * Added the XML::Twig method finish_now that terminates parsing
  immediately, without checking the rest of the XML.
  * HTML parsing improved: XML::Twig now tries to find the proper
  encoding for the document
* Thu Oct 18 2007 -
- package created (version 3.29) [#297511]