Tree interface to XML documents
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 http://xmltwig.com/xmltwig/tutorial/index.html. In fact the
whole XML::Twig page at http://xmltwig.com/xmltwig/ has plenty of
information to get you started with XML::Twig
- Developed at devel:languages:perl
-
3
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory/perl-XML-Twig && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
XML-Twig-3.44.tar.gz | 0000390219 381 KB | |
perl-XML-Twig.changes | 0000004207 4.11 KB | |
perl-XML-Twig.spec | 0000003256 3.18 KB |
Revision 27 (latest revision is 35)
- updated to 3.44 # minor maintenance release added: XML::Twig::Elt new method now acccepts literal content, eg my $e= XML::Twig::Elt->new( '<div><p>foo</p><p>bar</p></div>'); fixed: merge had some problems dealing with embedded comments improved: more tests improved: docs for parse, see RT #78877 https://rt.cpan.org/Ticket/Display.html?id=78877 fixed: xml_pp -i now preserves the permissions of the original file, see RT #81165 https://rt.cpan.org/Ticket/Display.html?id=81165 reported by Alberto Simoes fixed: RT #80503 Newlines in attribute values https://rt.cpan.org/Ticket/Display.html?id=80503 reported (and explained) by Ambrus Zsban: \r, \n and \n explicitely set in attribute values should be escaped (with &#x<nb>;) when output (forwarded request 177553 from coolo)
Comments 0