updated xmlprettyprint example program