title: html in rvest verses htmlParse in XML
body: <p>As the following code shows, <code>html</code> in <code>rvest</code> package uses <code>htmlParse</code> from <code>XML</code> package. . </p>
  
  <pre><code>html
  function (x, ..., encoding = NULL) 
  {
      parse(x, XML::htmlParse, ..., encoding = encoding)
  }
  &lt;environment: namespace:rvest&gt;
  
  htmlParse
  function (file, ignoreBlanks = TRUE, handlers = NULL, replaceEntities = FALSE, 
      asText = FALSE, trim = TRUE, validate = FALSE, getDTD = TRUE, 
      isURL = FALSE, asTree = FALSE, addAttributeNamespaces = FALSE, 
      useInternalNodes = TRUE, isSchema = FALSE, fullNamespaceInfo = FALSE, 
      encoding = character(), useDotNames = length(grep("^\\.", 
          names(handlers))) &gt; 0, xinclude = TRUE, addFinalizer = TRUE, 
      error = htmlErrorHandler, isHTML = TRUE, options = integer(), 
      parentFirst = FALSE) 
  .....
  </code></pre>
  
  <p>So, for the following url: </p>
  
  <pre><code> myurl&lt;-"http://www.nepalstock.com.np/"
  parse_XML&lt;-htmlParse(myurl) #runs without error
  parse_rvest&lt;-html(myurl) # throws out the Internal Sever error
  Error in parse.response(r, parser, encoding = encoding) : 
    server error: (500) Internal Server Error
  </code></pre>
  
  <p>Any idea?</p>