[Xml] Fix GetAttribute to handle null namespaces properly, add unit test.
[mono.git] / mcs / class / System.XML / System.Xml / DTDObjectModel.cs
index e7ba1e533514302ba7a8fde46f7f8dae375ce258..bbe073f6f13c6461611e3d586245fff56805aa98 100644 (file)
@@ -1161,7 +1161,7 @@ namespace Mono.Xml
                                if (Root.ExternalResources.Count > DTDObjectModel.AllowedExternalEntitiesMax)
                                        throw new InvalidOperationException ("The total amount of external entities exceeded the allowed number.");
 
-                       } catch (Exception ex) {
+                       } catch (Exception) {
 //                             loadException = ex;
                                LiteralEntityValue = String.Empty;
                                LoadFailed = true;