Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q5212, July 10, 2001 at 18:30:09:

You are here: irt.org | About | Feedback | 2950 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q5212

Sent by
François Vaudrin on July 10, 2001 at 18:30:09:

Comments:
I would like to know how I can construct an XML file from a .txt file

For example, if I have a .txt file with 3 coloums and I want to transform it in a .xml file with 3 tags.

.txt file

cat flower red
dog tree brown
....

.xml file

<misc>
<animal>cat</animal>
<plant>flower</plant>
<colour>red</colour>
</misc>
<misc>
<animal>dog</animal>
<plant>tree</plant>
<colour>brown</colour>
</misc>

Are there a script to do that easily ?

Thank you

François Vaudrin


©2018 Martin Webb