Creating xml from saved configuration


#1

Hey
I am using Juce for the first time and i am quite new. I am creating a project in which i am saving the user preferences in a class in variables and in the end i need to generate an xml file as it needs to be parsed to an excutable file which should look like the but very big one following :

0 0 40075016.685578488 40075016.685578488

In documentation in juce_XmlElement i found out setAttribute function but is there a way to use it to get output like the one i required or any other function which do similar job ?

Thanks for the help in advance .

Sahil


#2

Well yes - you’d use XmlElement::setAttribute and addTextElement to create it. There are many, many examples of how to use XmlElement if you search the codebase.


#3

Thanks a lot =)