Maybe I’m missing something simple here.
I have a bunch of save routines that make use of the createXml and fromXml methods in the Valuetrees.
All well and good, except that once in a while one of these Xml files get’s corrupted (a bad download, or a user restarting the computer at the exact wrong time, etc).
When this happens, I notice that a crash is caused on fromXml().
Now, I know it says in the docs that this isn’t equipped to handle just any arbitrary Xml. Still, couldn’t we get some sort of error check in there? Maybe it could just return ValueTree::invalid when it doesn’t work instead of crashing?