do not wrap DOMElements in CDATA sections for WPS Execute, p=jachym, r=me (closes http://trac.osgeo.org/openlayers/ticket/3517)

This commit is contained in:
Bart van den Eijnden
2011-12-14 15:20:00 +01:00
parent 55e5220a9e
commit 9f9829053a
2 changed files with 23 additions and 3 deletions
+8 -3
View File
@@ -203,9 +203,14 @@ OpenLayers.Format.WPSExecute = OpenLayers.Class(OpenLayers.Format.XML, {
schema: complexData.schema
}
});
node.appendChild(
this.getXMLDoc().createCDATASection(complexData.value)
);
var data = complexData.value;
if (typeof data === "string") {
node.appendChild(
this.getXMLDoc().createCDATASection(complexData.value)
);
} else {
node.appendChild(data);
}
return node;
},
"Reference": function(reference) {