elena       2003/02/17 10:59:45

  Modified:    java/src/org/apache/xerces/dom DOMNormalizer.java
  Log:
  Fix related to the datatype-normalization[1]  bug -- default content.
  [1] http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16594
  
  Revision  Changes    Path
  1.31      +3 -3      xml-xerces/java/src/org/apache/xerces/dom/DOMNormalizer.java
  
  Index: DOMNormalizer.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/DOMNormalizer.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- DOMNormalizer.java        17 Feb 2003 18:24:12 -0000      1.30
  +++ DOMNormalizer.java        17 Feb 2003 18:59:45 -0000      1.31
  @@ -1486,8 +1486,8 @@
                                String text = elementNode.getTextContent();
                                if (text.length() == 0) {
                                        // default content could be provided
  -                                     // REVISIT: should setTextConent(null) be 
allowed?
  -                                     elementNode.setTextContent(normalizedValue);
  +                    if (normalizedValue !=null)
  +                        elementNode.setTextContent(normalizedValue);
                                }
                        }
                }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to