Take note that if your templates are well-formed there is already a File::Find::Rule widget for doing XPath queries as well as a patch for documents with namespaces. Go now, and pester your favourite plug-in author!