diff --git a/src/xml/vdomdocument.cpp b/src/xml/vdomdocument.cpp index 51a034214..87af9b76b 100644 --- a/src/xml/vdomdocument.cpp +++ b/src/xml/vdomdocument.cpp @@ -125,7 +125,11 @@ bool VDomDocument::find(const QDomElement &node, const QString& id) void VDomDocument::CreateEmptyFile() { - QDomElement domElement = this->createElement("lekalo"); + QDomElement domElement = this->createElement("pattern"); + QDomAttr domAttr = createAttribute("xmlns"); + domAttr.setValue("http://www.opengis.net/kml/2.2"); + domElement.setAttributeNode(domAttr); + this->appendChild(domElement); QDomNode xmlNode = this->createProcessingInstruction("xml", "version=\"1.0\" encoding=\"UTF-8\""); this->insertBefore(xmlNode, this->firstChild());