1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

ValueTree::toXmlString method.

This commit is contained in:
jules 2012-08-12 16:56:28 +01:00
parent be013b485d
commit e73b49e220
2 changed files with 11 additions and 0 deletions

View file

@ -976,6 +976,12 @@ ValueTree ValueTree::fromXml (const XmlElement& xml)
return v;
}
String ValueTree::toXmlString() const
{
const ScopedPointer<XmlElement> xml (createXml());
return xml != nullptr ? xml->createDocument (String::empty) : String::empty;
}
//==============================================================================
void ValueTree::writeToStream (OutputStream& output) const
{