Changes for version 3.54 - 2025-06-11

  • changed the minimum version of Perl to 5.10 That should be old enough: "On December 18, 2007, the 20th anniversary of Perl 1.0, Perl 5.10. 0 was released."
  • fixed the "build" system moved .pm files in the usual place for CPAN modules (lib/) used PM_FILTER in Makefile.PL to inline some method calls thanks to Daniel Macks for having a look at this and suggesting most of the improvements
  • fixed del_atts/set_att broke keep_atts_order see https://stackoverflow.com/questions/79369132
  • fixed #TEXT handlers not being called when set using setTwigHandlers see https://github.com/mirod/xmltwig/issues/36 and fixed bugs in triggering #TEXT handlers in mixed content
  • fixed test special casing "SA" PERL_UNICODE instead of looking for S and A in the variable see https://github.com/mirod/xmltwig/issues/32
  • fixed docs for comment processing see https://github.com/mirod/xmltwig/issues/31
  • documentation cleanup thanks to chrispitude for the massive cleanup in https://github.com/mirod/xmltwig/pull/34 and to zostay and asb-capfan for finding typos in https://github.com/mirod/xmltwig/pull/29 and https://github.com/mirod/xmltwig/pull/33
  • improved strip_att to allow more than 1 attribute to be stripped thanks to chrispitude for https://github.com/mirod/xmltwig/pull/37
  • added HTML style aliases for positions for paste and insert_new_elt beforebegin for before afterbegin for first_child beforeend for last_child afterend for after
  • improved insert_new_elt to allow for the element to insert to be a well-formed XML string, similar to insertAdjacentHTML in js

Documentation

grep XML files looking for specific elements
merge back XML files split with xml_split
xml pretty-printer
spellcheck XML files
cut a big XML file into smaller chunks

Modules

A perl module for processing huge XML documents in tree mode.

Provides

in lib/XML/Twig.pm
in lib/XML/Twig.pm
in lib/XML/Twig.pm
in lib/XML/Twig.pm
in lib/XML/Twig.pm
in lib/XML/Twig/XPath.pm
in lib/XML/Twig/XPath.pm
in lib/XML/Twig/XPath.pm
in lib/XML/Twig/XPath.pm