title: how to validate if an XML is "well formed" in nodejs
body: <p>I'm working with nodejs and I need to validate if an xml is well formed, just that.</p>
  
  <p>I do not want to use xsd because the xml nodes can change.. and I do not know how to use it only to validate syntax.</p>
  
  <p>XML valid</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;note&gt;
  &lt;to&gt;Tove&lt;/to&gt;
  &lt;from&gt;Jani&lt;/from&gt; 
  &lt;heading&gt;Reminder&lt;/heading&gt;
  &lt;body&gt;Don't forget me this weekend!&lt;/body&gt;
  &lt;/note&gt;
  </code></pre>
  
  <p>XML invalid</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;note&gt;
  &lt;to&gt;Tove&lt;/to&gt;
  &lt;from&gt;Jani&lt;/from&gt; 
  &lt;heading&gt;Remi
  </code></pre>
  
  <p>I just need to validate that the xml syntax is correct and get true if it is well formed or false if not.</p>
  
  <p>Can anybody help me?</p>