fixed bug by removing toprettyprintxml
Merge pull request #521 from mbarry02/reg_xml_fix

fixed bug by removing toprettyprintxml