[Mapbender-commits] r8043 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Aug 2 08:00:04 EDT 2011


Author: verenadiewald
Date: 2011-08-02 05:00:04 -0700 (Tue, 02 Aug 2011)
New Revision: 8043

Modified:
   trunk/mapbender/http/classes/class_gml_3_factory.php
Log:
check if firstChildNode is really a XML_ELEMENT_NODE, otherwise check nextSibling

Modified: trunk/mapbender/http/classes/class_gml_3_factory.php
===================================================================
--- trunk/mapbender/http/classes/class_gml_3_factory.php	2011-08-02 11:59:09 UTC (rev 8042)
+++ trunk/mapbender/http/classes/class_gml_3_factory.php	2011-08-02 12:00:04 UTC (rev 8043)
@@ -365,7 +365,14 @@
 			// So we might need to do something more 
 			// sophisticated here...
 			if ($currentSibling->hasChildNodes() && $isGeomColumn){
-				$geomNode = $currentSibling->firstChild; 
+				$geomNode = $currentSibling->firstChild;
+                                if($geomNode->nodeType != XML_ELEMENT_NODE){
+                                    while($geomNode = $geomNode->nextSibling){
+                                        if($geomNode->nodeType == XML_ELEMENT_NODE){
+                                            break;
+                                        }
+                                    }
+                                }
 				$geomType = $geomNode->nodeName;
 				if ($geomNode->hasAttribute("srsName")) {
 					$srs = $geomNode->getAttribute("srsName");



More information about the Mapbender_commits mailing list