http://www.perlmonks.org?node_id=1004018


in reply to From a folder, read all the XML files and add the end tag if not present.

You know that end-tags are missing .. which is highly unusual, BTW .. but what else might be wrong with the files? Be careful that you do not try too hard to "fix" incorrect inputs. There is the perhaps apocryphal tale of a COBOL compiler that "compiled" a copy of Lincoln's Gettysburg Address with no "errors."
  • Comment on Re: From a folder, read all the XML files and add the end tag if not present.