xmltwig
xmltwig copied to clipboard
XML, the Perl way
I made some documentation edits. (This is just cosmetic/grammatical - I plan to follow up with content-related improvements next.)
I removed the attribute test on the descendants and delete the list of attributes for ALL descendants, which should be faster than looping through the attributes and filtering the descendants...
Hello, The monkey patching at https://github.com/mirod/xmltwig/blob/master/Twig/XPath.pm#L20 only silences warnings in one direction. If XML::XPath::NodeSet is use()d first all is silent, if XML::Twig::XPath is used first XML::XPath::NodeSet reinstates its orignal version...
Twig.pm at CPAN has ``` $VERSION = '3.49'; ``` and in repository ``` $VERSION = '3.48'; ```
If a handler is defined for #TEXT elements, the handler works if it's defined during twig creation using `XML::Twig->new(twig_handlers => ...)`, but not if applied to the twig afterward using...
In this testcase, I have elements inside text blocks: ``` This is item 1. This is boldfaced text in item 2. ``` I define a handler to wrap all #TEXT...
There was an n missing in idented_a
The order of letters in PERL_UNICODE is not important, so `AS` should be treated the same. Also other letters may be present so you should be checking for the presence...
Test environment: Perl 5.26.1, Cygwin x86_64 via perlbrew, XML::Twig 3.52 (latest), XML::Parser 2.44 (latest) The [first test in `t/test_bugs_3.22.t`](https://github.com/mirod/xmltwig/blob/master/t/test_bugs_3_22.t#L23) parses foo bar baz and then calls root->set_content("foo bar"); The test...
s/exemples/examples/ s/processedby/processed by/