<properties>
<prop id="31" data="8345783" />
<prop id="27" data="9156159" />
<prop id="82" data="0213545" />
</properties>
<script>
var props = document.querySelectorAll('properties prop');
var dataArr = [];
for (var i = 0; i < props.length; i++) {
dataArr.push([props[i].id, props[i].getAttribute('data')]);
}
console.log(dataArr);
</script>
примерно так