format xml according to standard