1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

feature #212: Put attribute data within CDDATA

This commit is contained in:
Ruben S. Montero 2010-05-18 23:38:16 +02:00
parent 161da30c52
commit 091a736d24
2 changed files with 4 additions and 4 deletions

View File

@ -143,8 +143,8 @@ public:
{
string * xml = new string;
*xml = "<" + name() + ">" + attribute_value
+ "</"+ name() + ">";
*xml = "<" + name() + "><![CDATA[" + attribute_value
+ "]]></"+ name() + ">";
return xml;
}

View File

@ -75,8 +75,8 @@ string * VectorAttribute::to_xml() const
for (it=attribute_value.begin();it!=attribute_value.end();it++)
{
oss << "<" << it->first << ">" << it->second
<< "</"<< it->first << ">";
oss << "<" << it->first << "><![CDATA[" << it->second
<< "]]></"<< it->first << ">";
}
oss << "</"<< name() << ">";