XML::DT - a package for down translation of XML to strings

Down translation function dt receives a filename and a set of functions defining how to process and associates values to each element, and returns the processed file.

dtstring is similar but takes input from a string instead of a file.