Im trying to save in a xml file the parameters of a plugin instance that i have in the graph as node number 5:
MemoryBlock myBlock; graph->getNode(5)->getProcessor()->getStateInformation(myBlock); ScopedPointer <XmlElement> paramsXmlElement(graph->getNode(5)->getProcessor()->getXmlFromBinary(myBlock.getData(), myBlock.getSize())); paramsXmlElement->writeToFile(File("C:\\MyDirectory\\params.xml"), String::empty);
i get an xml with random garbage written, what am i doing wrong?
thx in advance
Ok im stupid, i guess that random garbage is the Hex representation of the file, so the question that i should really is if there is a way to create the actual file with the infos contained?