Chenged main document element name.

--HG--
branch : feature
This commit is contained in:
dismine 2014-01-18 17:20:53 +02:00
parent 2427b140e1
commit 9d283a6283

View File

@ -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());