convert key=value to sgml



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



.



Relevant Pages

  • Re: cube problem
    ... meaning, just a different part of speech. ... 2006 by Lexico Publishing Group, LLC. ... Main Entry: demonstrable ...
    (rec.games.backgammon)
  • Re: cube problem
    ... meaning, just a different part of speech. ... 2006 by Lexico Publishing Group, LLC. ... Main Entry: demonstrable ...
    (rec.games.backgammon)
  • Re: moore blabla (Re: Fire, Food and Fish - Homo erectus didnt need fire to cook
    ... > international affairs turned out to be a research student. ... he can't even read a short entry in a dictionary without ... My mistake -- I had no idea they would have a completely different ... do say "1st meaning": you are giving the complete entry, ...
    (sci.anthropology.paleo)
  • Re: Re: The suns gonna blow up and were all gonna die!
    ... All that the OED requires for a word or phrase to earn an entry is ... that it is in common usage, with a definite meaning associated to it. ... but I bet more people know what an archaeopteryx ...
    (talk.origins)
  • Re: Takigi in kanji question
    ... >> difference in meaning between the two, ... >焚き木 in the same entry. ... >worth adding to Edict? ...
    (sci.lang.japan)