Long story short, I want to mask my XML file as a PNG in order to hack the import.
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.
Here's the very simplistic code I'm using to create the basic XML object:
namLegendOne <- paste0("Legend_1_", "SG_RUNID", ".xml")
fLOneName <- paste0(outFolder,namLegendOne)
write.table("<StyledText>", file = fLOneName, append = F, quote = F, row.names = F, col.names = F )
write.table("<Content>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</Content>", file = fLOneName, append = T, quote = F, row.names = F, col.names = F )
write.table("</StyledText>", file = fLOneName, append = T, quote = F, row.names = F, col.names = F )
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.
How can I hack the code above generate something that looks like a PNG.