commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ep...@apache.org
Subject cvs commit: jakarta-commons/configuration/src/java/org/apache/commons/configuration HierarchicalXMLConfiguration.java
Date Sat, 14 Aug 2004 11:22:00 GMT
epugh       2004/08/14 04:22:00

  Modified:    configuration/src/java/org/apache/commons/configuration
                        HierarchicalXMLConfiguration.java
  Log:
  fix for handling comments in xml properly.
  
  Revision  Changes    Path
  1.2       +4 -4      jakarta-commons/configuration/src/java/org/apache/commons/configuration/HierarchicalXMLConfiguration.java
  
  Index: HierarchicalXMLConfiguration.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/configuration/src/java/org/apache/commons/configuration/HierarchicalXMLConfiguration.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- HierarchicalXMLConfiguration.java	12 Jul 2004 12:14:38 -0000	1.1
  +++ HierarchicalXMLConfiguration.java	14 Aug 2004 11:22:00 -0000	1.2
  @@ -23,11 +23,11 @@
   import javax.xml.parsers.DocumentBuilderFactory;
   
   import org.w3c.dom.Attr;
  -import org.w3c.dom.CharacterData;
   import org.w3c.dom.Document;
   import org.w3c.dom.Element;
   import org.w3c.dom.NamedNodeMap;
   import org.w3c.dom.NodeList;
  +import org.w3c.dom.Text;
   
   /**
    * A specialized hierarchical configuration class that is able to parse
  @@ -165,9 +165,9 @@
                   node.addChild(childNode);
                   processAttributes(childNode, child);
               }
  -            else if (w3cNode instanceof CharacterData)
  +            else if (w3cNode instanceof Text)
               {
  -                CharacterData data = (CharacterData) w3cNode;
  +                Text data = (Text) w3cNode;
                   buffer.append(data.getData());
               }
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message