Click to See Complete Forum and Search --> : purging data in XML file with shell script


AnantMalireddy
11-11-2008, 06:35 AM
Hi

I loaded the data from source to target XML file ,now I want to purge the data in XML FILE which is more than 7 years old by running a shell script .Is it possible.If possible can you guide me.

Thanks in advance

Anant

Alain COUTHURES
11-12-2008, 12:56 AM
What kind of shell ??

There are plenty of solutions but, at least, an XML parser is required because regular expressions could be too difficult to use and inappropriate.

AnantMalireddy
11-12-2008, 01:30 AM
As you told lot of solutions can you suggest me which will be the simplest of all.

Alain COUTHURES
11-12-2008, 02:57 AM
There are no simple solutions (SAX, DOM, XSLT) but some products might help you if this is also a possibility for you... depending on your environment, as I said...