avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ymikul...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/csframework/src/cs/Configuration DefaultConfigurationSerializer.cs
Date Sun, 27 Oct 2002 15:54:36 GMT
ymikulski    2002/10/27 07:54:35

  Modified:    csframework/src/cs/Configuration
                        DefaultConfigurationSerializer.cs
  Log:
  no message
  
  Revision  Changes    Path
  1.5       +6 -3      jakarta-avalon-excalibur/csframework/src/cs/Configuration/DefaultConfigurationSerializer.cs
  
  Index: DefaultConfigurationSerializer.cs
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/csframework/src/cs/Configuration/DefaultConfigurationSerializer.cs,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DefaultConfigurationSerializer.cs	25 Sep 2002 22:46:57 -0000	1.4
  +++ DefaultConfigurationSerializer.cs	27 Oct 2002 15:54:35 -0000	1.5
  @@ -103,11 +103,14 @@
   			configuration.Value = node.InnerText;
   
   			// attribute deserialization
  -			foreach (XmlAttribute attr in node.Attributes)
  +			if (node.Attributes != null)
   			{
  -				if (string.Compare(attr.Prefix, string.Empty) == 0)
  +				foreach (XmlAttribute attr in node.Attributes)
   				{
  -					configuration.Attributes[attr.Name] = attr.Value;  
  +					if (string.Compare(attr.Prefix, string.Empty) == 0)
  +					{
  +						configuration.Attributes[attr.Name] = attr.Value;  
  +					}
   				}
   			}
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message