fixed edit initialization. added pprint_xml for proper indentation