I noticed that using ValueTree::fromXml(myXmlElement) seems to have some issues if myXmlElement contains a TextElement :
ScopedPointer <XmlElement> state(new XmlElement("drumsetState")); state->addTextElement("test"); ValueTree testTree(ValueTree::fromXml(*state));
The above code causes an assertion error:
JUCE Assertion failure in /Users/aaronleese/juce/amalgamation/…/src/containers/juce_Identifier.cpp, line 61
Because the code wants a TagName to exist on the child textElement.
There are plenty of workarounds, of course, but it wouldn’t be bad to have some way to support textElements in ValueTree’s either.