You are indeed correct – it has been factored-out.
Yeah, but only 17 years ago so you were definitely on point, geologically speaking. And it was the other way around. XML::LibXML was part of the XML::LibXSLT dist but what's a bucket of chum between friends!
XSLT is there and well-supported to do exactly jobs like this, with or without(!) Perl being involved.
Can't wait to see you post an example that solves an OP's question with either recommended approach! Heat death of Universe being the scientifically predicted time scale in that case.
Fully-leveraging XML technologies via these standard binaries eliminates great code complexity and improves maintainability.
^^^ Imagine if you will a fortune cookie in the role of PM.