1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +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; string * xml = new string;
*xml = "<" + name() + ">" + attribute_value *xml = "<" + name() + "><![CDATA[" + attribute_value
+ "</"+ name() + ">"; + "]]></"+ name() + ">";
return xml; return xml;
} }

View File

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