in reply to how to convert tab separated text lines into xml files
You don't tell us what XML schema you intend to output, nor do you show any code you have attempted to write yourself.
My approach would be:
#!perl -wle while (<>) { s!^!<row><value>!; s!\t!</value><value>!g; s!$!</value></row>!; print; };
If you need more structure in your XML, you will have to tell us what structure.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: how to convert tab separated text lines into xml files
by mirod (Canon) on Feb 19, 2012 at 19:10 UTC |