added option to get xml document namespaces recursively

@tamlyn - first, thanks for creating this - has come in very handy.  

I have ran into a few xml files that had namespaces that had to be found recursively - and added the option to switch  $recursive parameter of getDocNamespaces to TRUE when option is set.  by default, parameter is set to  FALSE so that the function continues to perform as originally published.