add: if (doc.importNode) { node = doc.importNode(node, true); } 
context:     write: function(node) {        var data;        if(this.xmldom) {            data = node.xml;        } else {            var serializer = new XMLSerializer();            if (node.nodeType == 1) {                // Add nodes to a document before serializing. Everything else                // is serialized as is. This may need more work. See #1218 .                var doc = document.implementation.createDocument("", "", null);                doc.appendChild(node);                data = serializer.serializeToString(doc);            } else {                data = serializer.serializeToString(node);            }        }        return data;    },
meta: 1027	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1027/3751402ff8768cea0184d851d039450eed4f63db/XML.js/buggy/lib/OpenLayers/Format/XML.js