Getting a specific tag in .ofx file

0

I can read the whole .ofx file with javascript / ajax:

var ofxReader = new XMLHttpRequest() || new ActiveXObject('MSXML2.XMLHTTP');

function loadFile() {
    ofxReader.open('get', 'sample.ofx', true); 
    ofxReader.onreadystatechange = displayContents;
    ofxReader.send(null);
}

function displayContents() {
    if(ofxReader.readyState==4) {
        var el = document.getElementById('main');
        var list = ofxReader.responseText;
        el.innerHTML = list;
    }
}

loadFile();

However, I wanted to get only one specific tag (MEMO, TRNAMT, for example) so I could format.

    
asked by anonymous 26.07.2016 / 04:48

0 answers