Subject:how to place the text of the file in XML format Author:sudhir spraikhar Date:29 Jul 2005 04:42 AM
I have a perl script thru which i extract the details from the file
this file contains all the extensions of the file say .txt and .doc file
the followinmg format woukld like to have place those file in the xml format
say <?xml version = 1.0 >
<opt>
<rulesfile>home/sraikhar/.../.txt</rulesfile>
<docfile>home/sraikhar/..../.doc</docfile>
</opt>
the script will be as follows
#!/usr/bin/perl
use XML::Simple
'ls /home/srai/rules/include/* > somefile';