New dom4 utility file. Includes a folder-copying routine that might be of use later if refactored out.