title: How to verify whether a xml file is valid in sh or bash?
body: <p>How to verify whether a XML file is valid in sh (preferably) or bash? </p>
  
  <p>I have a file that often get corrupted and needs to be replaced while I take my time to investigate the underlying issue.</p>
  
  <p>Is there any easy way of performing this task with sh or bash?</p>