title: Easy Way to Add Closing Tags on HTML Document so XSLT can be Applied
body: <p>I am working on a system where I need to pass some HMTL through an XSLT transformation, but the HTML has a few header tags that don't have closing tags so it is not technically "well-formed" to be able to apply XSLT. Here are the tags:</p>
  
  <pre><code>  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
    &lt;meta http-equiv="X-UA-Compatible" content="IE=9"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
    &lt;link rel="stylesheet" href="bootstrap.min.css"&gt;
    &lt;link rel="stylesheet" href="smartdoc.css"&gt;
  </code></pre>
  
  <p>Here is the issue, the documents that I am working with are downloaded to a server so I don't have direct access to simply open the file, in say notepad, and close the tags manually. What is the best way to go about closing those tags so that I can use the XSLT on them? Note I am using a Java library to run the XSLT transformation so I could potentially use something from Java to edit the HTML before applying the XSLT, but I am not sure what to use.</p>