more porting of REXML to Nokogiri: remove .attributes
add namespace option to backlinks
function to extrapulate document frequency