About this XML translator
by Anthony Francis Cernosek 11/25/2003
This is one way translate variable length text strings into fixed XML format. The demo takes a single line of text ( a person's name) and uses parsing rules (and JavaScript) to break the text into XML tags.
To be more useful the program needs to be rewritten as...
* A Windows program (in Visual Basic) to read an entire text file on a user's PC.
* Or a client-server application (in ASP & VBscript or in Java) to translate text files on the server.
Input files to be parsed could include Email, PDF, etc. Note that a huge amount of potentially useful data is hidden in unformatted text files like these.
XML output could be written to a file on the server, or returned to the client's browser.
Multiple versions of the translator (or selectable SSI code) could enable ....
* Reading any ODBC type database (no parsing needed)
* Reading packed data files with fixed position fields (easy to parse)