I noticed that XML is better and easier to save a scene as done by etcaptor in visual editor. But it is not secure , anyone can edit them in thier text editors and u loose whatever in the scene , or the whole scene can be changed with anything . So how to secure such situation .
You could use some checksum calculation (like CRC), and store the result in the source code. Before loading, just calculate it again, and see if the two values match.