diff --git a/ajax-requests/js/xmlCap.js b/ajax-requests/js/xmlCap.js index ec61747..d8da175 100644 --- a/ajax-requests/js/xmlCap.js +++ b/ajax-requests/js/xmlCap.js @@ -11,8 +11,16 @@ function captureXML() { check = div.innerHTML == content; if (check) { if (xhr.status >= 200 && xhr.status < 400) { - var data = xhr.responseXML; - + var data = xhr.responseXML.getElementsByTagNames('expense'); + content += '
| COMPANY EXPENSE | ||
|---|---|---|
| Category | Group | File|
| ' + data[d].childNodes[0].textContent + ' | '; + content += '' + data[d].childNodes[1].textContent + ' | '; + content += '|