瀏覽代碼

fixed missing ns for xlink in WFS

Piotr Labudda 9 年之前
父節點
當前提交
9ff5feae0d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      SE/se-lib/Api/WfsDataServer.php

+ 1 - 0
SE/se-lib/Api/WfsDataServer.php

@@ -262,6 +262,7 @@ if($DBG){echo 'getItems:';print_r($searchParams);echo "\n";}
 		$rootNode->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:wfs', 'http://www.opengis.net/wfs');
 		$rootNode->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:gml', 'http://www.opengis.net/gml');
 		$rootNode->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
+		$rootNode->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:xlink', 'http://www.w3.org/1999/xlink');
 		$rootNode->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:' . $wfsNs, $wfsNsUri);
 		if (!$simple) $rootNode->setAttributeNS('http://www.w3.org/2000/xmlns/', "xmlns:{$rootWfsNs}", $rootWfsNsUri);
 		//$rootNode->setAttribute('xsi:schemaLocation', 'http://www.opengis.net/wfs');