QFX Export from Capital One Credit Card not importing "Error End Document Tag"

SOLVED

I have successfully imported transactions from several banks and credit cards. However, Capital One credit cards are giving me an error

"Error End Document Tag" 

Which means there is some kind of problem with the xml file. Anybody run into this and if so, did you find a way to fix it. It is probably a matter of editing the file and removing some unnecessary stuff.