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:
parent
161da30c52
commit
091a736d24
@ -143,8 +143,8 @@ public:
|
||||
{
|
||||
string * xml = new string;
|
||||
|
||||
*xml = "<" + name() + ">" + attribute_value
|
||||
+ "</"+ name() + ">";
|
||||
*xml = "<" + name() + "><![CDATA[" + attribute_value
|
||||
+ "]]></"+ name() + ">";
|
||||
|
||||
return xml;
|
||||
}
|
||||
|
@ -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() << ">";
|
||||
|
Loading…
Reference in New Issue
Block a user