var content = this.doc.createElement('Content');
content.setAttribute('image-type', type ? type : 'jpeg');
content.setAttribute('size-bytes', size);
+ content.appendChild( this.doc.createTextNode(data));
soi.appendChild(content);
objs.appendChild(soi);
* @param {Number} width image height
*
*/
+
writeImage : function (row, col, data, width, height, type)
{
var content = this.doc.createElement('Content');
content.setAttribute('image-type', type ? type : 'jpeg');
content.setAttribute('size-bytes', size);
- content.textContent = data;
+ content.appendChild( this.doc.createTextNode(data));
soi.appendChild(content);
objs.appendChild(soi);
var content = this.doc.createElement('Content');
content.setAttribute('image-type', type ? type : 'jpeg');
content.setAttribute('name', name);
+
soi.appendChild(content);
objs.appendChild(soi);