JUCE includes a range of support for XML parsing and storage. You may have noticed that the Introjucer application uses the XML format to store metadata at the end of some of the autogenerated files (for example, in our
EntryForm.cpp file). In particular, a
ValueTree object can be serialized into XML, and this same XML can be deserialized back into a
ValueTree object (although you can't convert any arbitrary XML to a
ValueTree object without doing some of your own parsing). To add opening and saving capabilities to our project, first we need to add an Open… and a Save… button in the Introjucer project. Give these the name and member name
saveButton respectively. Then, in the code we need to perform the conversions ...