Chenged main document element name.
--HG-- branch : feature
This commit is contained in:
parent
2427b140e1
commit
9d283a6283
|
@ -125,7 +125,11 @@ bool VDomDocument::find(const QDomElement &node, const QString& id)
|
||||||
|
|
||||||
void VDomDocument::CreateEmptyFile()
|
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);
|
this->appendChild(domElement);
|
||||||
QDomNode xmlNode = this->createProcessingInstruction("xml", "version=\"1.0\" encoding=\"UTF-8\"");
|
QDomNode xmlNode = this->createProcessingInstruction("xml", "version=\"1.0\" encoding=\"UTF-8\"");
|
||||||
this->insertBefore(xmlNode, this->firstChild());
|
this->insertBefore(xmlNode, this->firstChild());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user