new pretty print XML method