<div id="id"></div>
<script>
var xmlData = '<style border="1px solid red" hight="100px" />';
var xml = new DOMParser().parseFromString(xmlData, 'application/xml');
var div = document.getElementById('id')
var decoration = xml.querySelector('style');
div.style.border = decoration.getAttribute('border');
div.style.height = decoration.getAttribute('hight');
</script>