From cde48521d0719493dfc5da883d955551375b7561 Mon Sep 17 00:00:00 2001 From: Ron Young Date: Thu, 1 Dec 2016 20:33:47 -0600 Subject: [PATCH] add ol.format.XSD CDATA writer --- src/ol/format/xsd.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ol/format/xsd.js b/src/ol/format/xsd.js index 32bff8a168..8fc439f1d7 100644 --- a/src/ol/format/xsd.js +++ b/src/ol/format/xsd.js @@ -114,6 +114,15 @@ ol.format.XSD.writeBooleanTextNode = function(node, bool) { }; +/** + * @param {Node} node Node to append a CDATA Section with the string to. + * @param {string} string String. + */ +ol.format.XSD.writeCDATASection = function(node, string) { + node.appendChild(ol.xml.DOCUMENT.createCDATASection(string)); +}; + + /** * @param {Node} node Node to append a TextNode with the dateTime to. * @param {number} dateTime DateTime in seconds.