Looking for Text->XML parser

webmasterbeta

New Member
Hi, I'm looking for an easy script (XML or PHP based)
which can quickly turn a "plain" list into XML.

The list is in a .txt file and it looks like this:
Name: John
Location: Wisconsin
Age: 14

Name: Peter
Location: Amsterdam
Age: 63

Name: Jane
Location: Berlin
Age: 29
Now I'm looking for a script that can turn this list into an XML file like this:
<person>
<name>John</name>
<location>Wisconsin</location>
<age>14</age>
</person>
etc.

Can you help me with either an existing script, or a little code?
Thanks!
 
Back
Top