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:
parent
be013b485d
commit
e73b49e220
2 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue