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.