title: xmlParseFile vs xmlReadFile (libxml2)
body: <p>I'm writing some C code using the libxml2 library to read an XML file.  There seem to be two different functions for this purpose, <a href="http://www.xmlsoft.org/html/libxml-parser.html#xmlParseFile" rel="nofollow">xmlParseFile</a> and <a href="http://xmlsoft.org/html/libxml-parser.html#xmlReadFile" rel="nofollow">xmlReadFile</a>, and and I'm not sure of the difference between them (besides the fact that xmlReadFile() takes some additional parameters).</p>
  
  <p>The examples on the libxml2 website sometimes use xmlParseFile and some use xmlReadFile. </p>
  
  <p>So when should you use xmlParseFile and when should you use xmlReadFile? 
  I haven't been able to find anything that explains this.</p>