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:
parent
161da30c52
commit
091a736d24
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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() << ">";
|
||||||
|
Loading…
Reference in New Issue
Block a user