elena       2003/02/17 10:24:12

  Modified:    java/src/org/apache/xerces/dom DOMNormalizer.java
  Log:
  Fixing "datatype-normalization" bug: 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16594
  
  Revision  Changes    Path
  1.30      +3 -2      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.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- DOMNormalizer.java        17 Feb 2003 18:06:26 -0000      1.29
  +++ DOMNormalizer.java        17 Feb 2003 18:24:12 -0000      1.30
  @@ -1476,7 +1476,8 @@
                        // include element default content (if one is available)
                        String normalizedValue = 
elementPSVI.getSchemaNormalizedValue();
                        if ((fConfiguration.features & 
DOMConfigurationImpl.DTNORMALIZATION) != 0) {
  -                             elementNode.setTextContent(normalizedValue);
  +                if (normalizedValue !=null)
  +                                 elementNode.setTextContent(normalizedValue);
                        }
                        else {
                                // NOTE: this is a hack: it is possible that DOM had 
an empty element
  
  
  

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

Reply via email to