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 Wed, 04 Sep 2002 16:11:04 GMT
ymikulski    2002/09/04 09:11:03

  Modified:    csframework/src/cs/Configuration
                        DefaultConfigurationSerializer.cs
  Log:
  no message
  
  Revision  Changes    Path
  1.3       +6 -6      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultConfigurationSerializer.cs	28 Aug 2002 13:06:13 -0000	1.2
  +++ DefaultConfigurationSerializer.cs	4 Sep 2002 16:11:03 -0000	1.3
  @@ -47,17 +47,17 @@
   			// serialize the configuration
   			writer.WriteStartElement(configuration.Prefix, configuration.Name, configuration.Namespace);

   			
  -			if (configuration.Value != null)
  -			{
  -				writer.WriteString(configuration.Value.ToString());
  -			}
  -			
   			// attribute serialization
   			foreach (DictionaryEntry attr in configuration.Attributes) 
   			{
   				writer.WriteAttributeString(attr.Key.ToString(), attr.Value.ToString()); 
   			}  
   
  +			if (configuration.Value != null)
  +			{
  +				writer.WriteString(configuration.Value.ToString());
  +			}
  +
   			// child serialization
   			foreach(IConfiguration child in configuration.Children)
   			{
  @@ -100,7 +100,7 @@
   			DefaultConfiguration configuration =
   				 new DefaultConfiguration(node.LocalName, "-", node.NamespaceURI, node.Prefix);
   			
  -			configuration.Value = node.Value;
  +			configuration.Value = node.InnerText;
   
   			// attribute deserialization
   			foreach (XmlAttribute attr in node.Attributes)
  
  
  

--
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