Format xml by typescript