Added a function to print DOMDocument

Helpful for debugging XML response from Litle