Some CPAN modules don't have a "pure Perl" equivalent that actually does the same thing. Some, like
XML::LibXML, are simply "wrappers" for binary libraries. (In this case, one that is an accepted industry standard for managing XML, and therefore quite likely to be the same one that produced the file that your program is now consuming.)