title: How Can I Write an XML File that Looks like a PNG File?
body: <p>Long story short, I want to mask my XML file as a PNG in order to hack the import.</p>
  
  <p>I'm rolling an XML file in R for import into a third party software. Although the XML is readable in that software via private classes, I cannot get the XML file to be read when imported through the image classes that're public. So far I've tried accessing those other classes to no avail.</p>
  
  <p>Here's the very simplistic code I'm using to create the basic XML object:</p>
  
  <pre><code>namLegendOne &lt;- paste0("Legend_1_", "SG_RUNID", ".xml")
  fLOneName &lt;- paste0(outFolder,namLegendOne)
  
  write.table("&lt;StyledText&gt;", file = fLOneName, append = F, quote = F, row.names = F, col.names = F )
  write.table("&lt;Content&gt;Consensus Clustering Confusion Marix of Cells vs Cells", file = fLOneName, append = T, quote = F, row.names = F, col.names = F )
  write.table("Color Mapped by Similarity Score: ", file = fLOneName, append = T, quote = F, row.names = F, col.names = F )
  write.table("0 (blue) = Non-Overlapping Asignments; 1 (red) = Unanimous Asignment to Cluster&lt;/Content&gt;", file = fLOneName, append = T, quote = F, row.names = F, col.names = F )
  write.table("&lt;/StyledText&gt;", file = fLOneName, append = T, quote = F, row.names = F, col.names = F )
  </code></pre>
  
  <p>I have run this to generate the XML, and the file imports correctly when manually added to third party software. However I am unable to import the file using natively available API.</p>
  
  <p>How can I hack the code above generate something that looks like a PNG.</p>