convert key=value to sgml
- From: "Tom Gerling" <no@xxxxxxxx>
- Date: Tue, 16 Jan 2007 19:52:45 +0100
Hello,
what I need to do is reading a simple (csv-like) text file containing
key-value pairs, separated by a given delimiter (e.g: "," "=" or
";" ). Example:
--------Beginning of file--------------------
Meaning One=Alternate Meaning One
Meaning Two=Alternate Meaning Two
..
..
..
--------End file---------------------------------
This file needs to be converted into a plain text file of the following
format:
--------Beginning of file--------------------
<entry>
<term>Meaning one</term>
<trans>Alternate Meaning One</trans>
</entry>
<entry>
<term>Meaning Two</term>
<trans>Alternate Meaning Two</trans>
</entry>
..
..
..
--------End file---------------------------------
Can this be done in WSH, or would I need to resort to a 3rd party language?
Thanks + Regards,
Tom
.
- Follow-Ups:
- RE: convert key=value to sgml
- From: urkec
- RE: convert key=value to sgml
- Prev by Date: WSF files and function calls...
- Next by Date: RE: convert key=value to sgml
- Previous by thread: WSF files and function calls...
- Next by thread: RE: convert key=value to sgml
- Index(es):
Relevant Pages
|