Fix bug in pretty xml that didn't show nested elements