Indent the XML code for testing, and add similar code in Json format