|Subject:||use XS if available|
This module should silently make use of the XML::CompactTree::XS if it is available. See JSON / JSON::XS and Text::CSV / Test::CSV_XS, etc. as examples. I like the idea of this module a lot, but the interface seems a bit awkward. How about having this module add a method to XML::LibXML::Reader, so you could just go $reader->simplify (that's XML::Twig's method name for the same functionality), or $reader->to_perl, etc. ?