mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-05 03:50:07 +00:00
Added a couple of handy methods XmlDocument::parse().
This commit is contained in:
parent
59ac5a6d25
commit
030489f086
12 changed files with 136 additions and 179 deletions
|
|
@ -198,8 +198,7 @@ bool PropertiesFile::save()
|
|||
e->setAttribute (PropertyFileConstants::nameAttribute, getAllProperties().getAllKeys() [i]);
|
||||
|
||||
// if the value seems to contain xml, store it as such..
|
||||
XmlDocument xmlContent (getAllProperties().getAllValues() [i]);
|
||||
XmlElement* const childElement = xmlContent.getDocumentElement();
|
||||
XmlElement* const childElement = XmlDocument::parse (getAllProperties().getAllValues() [i]);
|
||||
|
||||
if (childElement != 0)
|
||||
e->addChildElement (childElement);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue