I am receiving an XML file (FTP) and importing it into an Access table using VBA. Works great! I haven't been using the MS XML Parser -- it's a flat file, I just substring and parse.
However, the next phase of development requires receiving the same file encrypted. I found a COM Wrapper program that works with PGP and lets me automatically decrypt the file from my VBA routine. Works great!
Now the problem. My file parsing code doesn't work with the new routine, because the decrypted file is SLIGHTLY different. Inet Explorer doesn't reveal the difference. Neither does MS Word with the hidden characters set to show. However, Notepad does show the difference. It has to do with line breaks, which are replaced by ASCII generic squares.
My VBA routine was just happily going through the file, importing one line (ONE LINE, get it?) at a time and stripping out the variable and the value. Now that the "current line" is tantamount to reading the whole file, it doesn't work.
So you're going to tell me to switch to the XML Parser, I expect. Okay, I will.
But has anybody ever run into this? Now why should cryption result in any alteration to the file? And by the way, do I have 100% assurance that the Parser will not have a problem with the file?
I don't find a Tek-Tips forum relating to encryption, but if anyone knows a resource, I'd like to know.
Scott
___________________________________
"In theory, there is no difference between theory and practice. But in practice, there is."
However, the next phase of development requires receiving the same file encrypted. I found a COM Wrapper program that works with PGP and lets me automatically decrypt the file from my VBA routine. Works great!
Now the problem. My file parsing code doesn't work with the new routine, because the decrypted file is SLIGHTLY different. Inet Explorer doesn't reveal the difference. Neither does MS Word with the hidden characters set to show. However, Notepad does show the difference. It has to do with line breaks, which are replaced by ASCII generic squares.
My VBA routine was just happily going through the file, importing one line (ONE LINE, get it?) at a time and stripping out the variable and the value. Now that the "current line" is tantamount to reading the whole file, it doesn't work.
So you're going to tell me to switch to the XML Parser, I expect. Okay, I will.
But has anybody ever run into this? Now why should cryption result in any alteration to the file? And by the way, do I have 100% assurance that the Parser will not have a problem with the file?
I don't find a Tek-Tips forum relating to encryption, but if anyone knows a resource, I'd like to know.
Scott
___________________________________
"In theory, there is no difference between theory and practice. But in practice, there is."