bangor has asked for the wisdom of the Perl Monks concerning the following question:
But the odd file has this:<EARTHSTATS>
and it's messing up my parse. I'm sure there is a way of grepping through the files from the command line and getting rid of the offenders but I'm useless at that. Can anyone start me off with the type of command to use? Thanks!<?xml version="1.0" encoding="utf-8"?> <EARTHSTATS xmlns="http://www.earthstats.org/XFDL/Custom">
Update:
This is what's messing me up:
It doesn't work on the file that has the xmlns - maybe I could change that?my @nodes = $doc->findnodes('EARTHSTATS');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Search and replace for large number of files
by choroba (Cardinal) on May 23, 2014 at 08:59 UTC | |
by smls (Friar) on May 23, 2014 at 10:47 UTC | |
by bangor (Monk) on May 23, 2014 at 11:16 UTC | |
by bangor (Monk) on May 23, 2014 at 11:19 UTC | |
by RonW (Parson) on May 23, 2014 at 19:45 UTC | |
|
Re: Search and replace for large number of files
by taint (Chaplain) on May 23, 2014 at 23:06 UTC |