#include <MsgBoxConstants.au3>
#include <XML.au3>
$sFile='C:\doс.xml'
$sXML_Content=FileRead($sFile)
Local $oXMLDoc = _XML_CreateDOMDocument(Default)
_XML_LoadXML($oXMLDoc, $sXML_Content)
Local $sXmlAfterTidy = _XML_TIDY($oXMLDoc, -1)
MsgBox(4096,'$sXmlAfterTidy =>'&$sXmlAfterTidy&'<=')