Added PrettyXML function to make my life easier.
Modified to pull from my branch instead of coderifous'.