title: Does R shiny allow to parse an XML file?
body: <p>I parse an uploaded XML file in the <em>renderPlot</em> function of the <em>server.R</em> script of R-Shiny </p>
  
  <pre><code>output$oscar &lt;- renderPlot({
  doc &lt;- xmlParse("www/Human_body_front_and_side.svg.eps.xml")
  
  #load the XML as a picture
  body&lt;-readPicture(saveXML(doc))
  
  #plot it
  grid.arrange(pictureGrob(body), ncol=1)
  })
  </code></pre>
  
  <p>but I get the following error for the parsing:</p>
  
  <blockquote>
  <pre><code>XML content does not seem to be XML
  </code></pre>
  </blockquote>
  
  <p>I had loaded the correct libraries (<code>shiny</code>, <code>XML</code>), and checked that the uploaded xml file is fine.</p>
  
  <p>The interesting point is that if, before starting the "runApp" of R-Shiny, I do in the R terminal:</p>
  
  <pre><code>doc &lt;&lt;- xmlParse("Human_body_front_and_side.svg.eps.xml")
  </code></pre>
  
  <p>no error and everything works fine. So it looks like R shiny has an issue with parsing xml. I am a newbie in R-Shiny, hence does anyone see what it needs to recognize that XML file?</p>