by
fseipel » Sun Sep 02, 2012 12:51 am
This problem has finally been resolved. I wanted to document this.
1.) In closer reading of the manual, it briefly mentions C:\Chem32\CORE\xml2csv which parses the XML file. I had run this before to confirm my MSXML version was correct. I did NOT realize that I could run this directly from the command line with arguments. It provides much more verbose error messages than 'Import Worklist' from the GUI, e.g. 'System does not support the specified encoding'.
2.) I had previously copied/pasted the PDF into Notepad. Problem is, in Agilent's PDF Appendix sample worklist, they have a space before the encoding which if pasted into Notepad, causes XML2CSV to ALWAYS throw the 'System does not support the specified encoding' regardless of what format the file is saved in within Notepad, e.g. <?xml version="1.0" encoding=" ISO-8859-1"?> is what the PDF file contains. I had actually tried saving in different formats in Notepad, but because of this issue, none of them worked since the space created an invalid encoding.
3.) If anyone else has any issues with this, try running xml2csv c:\worklist6.xml C:\Chem32\CORE\WORKLIST.XSL in a DOS window where first argument is worklist source file and second is default style sheet path which will display the verbose errors.
4.) If saving a test worklist in Notepad save as ANSI if you use the encoding set in connectivity guide appendix (ISO-8559-1). All of this is rather confusing because Notepad does not use the same nomenclature as XML to describe most encodings.
6.) If encoding is set to UTF-8 and file is saved as UTF-8 in Notepad, it will also import successfully.
7.) Since Unicode is identical to UTF-16, if saved in Notepad as Unicode, with encoding set to UTF-16 in first line of XML header, it will also import without errors.
8.) I have now been able to generate the worklist dynamically using VBA from MS Access. Since I also am able to import the XML results into Access, I am well on my way to building a LIMS.
I'm not currently planning on doing anything in the ChemStation macro language.