in reply to From a folder, read all the XML files and add the end tag if not present.
It is a quick check and a quick fix with a text editor, and there are only 25 files.
Sometimes it's easier to just do it manually.
That said, if you have the xmllint command-line tool available (which is fairly standard, and packaged by almost every Linux distribution), then that should be able to tell you very quickly which files have errors:
xmllint --noout *.xml
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: From a folder, read all the XML files and add the end tag if not present.
by Anonymous Monk on Nov 15, 2012 at 09:20 UTC | |
by Anonymous Monk on Nov 15, 2012 at 09:24 UTC |
In Section
Seekers of Perl Wisdom