O'Reilly logo

Getting Started With JUCE by Martin Robinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding XML support

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 openButton and saveButton respectively. Then, in the code we need to perform the conversions ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required