XP is just a number | |
PerlMonks |
Re^2: XML::LibXML out of memoryby Anonymous Monk |
on Mar 24, 2022 at 11:52 UTC ( [id://11142364]=note: print w/replies, xml ) | Need Help?? |
I made a slight mod to your code as I'm experiencing a problem.
I get this result, but with an interesting empty (ish) node just before "Done!"
Is this expected behaviour? As I can't find any direct reference as to why this should be the case I've had some help on StackEchange which suggested this was normal behaviour - But I thought I'd ask for a second opinion This link : https://metacpan.org/dist/XML-LibXML/view/lib/XML/LibXML/Reader.pod#nextPatternMatch-(compiled_pattern) Suggests that nextPatternMatch should "Skip nodes following the current one in the document order until an element matching a given compiled pattern is reached." This is ambiguous since it doesn't specify if it's "XML_READER_TYPE_ELEMENT" or "XML_READER_TYPE_END_ELEMENT" or either. I'm wondering if I should report a bug?
In Section
Seekers of Perl Wisdom
|
|