[Mapbender-commits] r9527 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jun 24 03:26:41 PDT 2016


Author: armin11
Date: 2016-06-24 03:26:40 -0700 (Fri, 24 Jun 2016)
New Revision: 9527

Modified:
   trunk/mapbender/http/php/wms.php
Log:
Integrate dtd in header - for validating clients ;-)

Modified: trunk/mapbender/http/php/wms.php
===================================================================
--- trunk/mapbender/http/php/wms.php	2016-06-20 13:56:26 UTC (rev 9526)
+++ trunk/mapbender/http/php/wms.php	2016-06-24 10:26:40 UTC (rev 9527)
@@ -223,8 +223,11 @@
 // (return most recent Capabilities XML)
 //
 // ---------------------------------------------------------------------------
+$imp = new DOMImplementation;
+$dtd = $imp->createDocumentType('WMT_MS_Capabilities', '', 'http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd');
+$doc = $imp->createDocument("", "", $dtd);
 
-$doc = new DOMDocument('1.0');
+//$doc = new DOMDocument('1.0');
 $doc->encoding = 'UTF-8';
 $doc->standalone = false;
 



More information about the Mapbender_commits mailing list