You are viewing a plain text version of this content. The canonical link for it is here.
Posted to crimson-cvs@xml.apache.org by ed...@apache.org on 2001/09/14 02:50:25 UTC

cvs commit: xml-crimson/src/org/apache/crimson/tree XmlDocumentBuilder.java

edwingo     01/09/13 17:50:25

  Modified:    src/org/apache/crimson/tree XmlDocumentBuilder.java
  Log:
  Fix DOM conformance failures as tested by domunit, provided by Curt Arnold.
  
  Revision  Changes    Path
  1.6       +3 -21     xml-crimson/src/org/apache/crimson/tree/XmlDocumentBuilder.java
  
  Index: XmlDocumentBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-crimson/src/org/apache/crimson/tree/XmlDocumentBuilder.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XmlDocumentBuilder.java	2001/03/09 01:04:26	1.5
  +++ XmlDocumentBuilder.java	2001/09/14 00:50:25	1.6
  @@ -1,5 +1,5 @@
   /* 
  - * $Id: XmlDocumentBuilder.java,v 1.5 2001/03/09 01:04:26 edwingo Exp $
  + * $Id: XmlDocumentBuilder.java,v 1.6 2001/09/14 00:50:25 edwingo Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -127,7 +127,7 @@
    * than matching an XML structure that may not be optimized appropriately.
    *
    * @author David Brownell
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.6 $
    */
   public class XmlDocumentBuilder implements ContentHandler, LexicalHandler,
       DeclHandler, DTDHandler
  @@ -567,25 +567,7 @@
   	if (ignoreWhitespace)
   	    return;
   
  -        ParentNode	top = elementStack [topOfStack];
  -
  -	if (inCDataSection) {
  -	    String		temp = new String (buf, offset, len);
  -	    CDATASection	section;
  -
  -	    section = (CDATASection) top.getLastChild ();
  -	    section.appendData (temp);
  -	    return;
  -	}
  -
  -        TextNode	text = document.newText (buf, offset, len);
  -        
  -	try {
  -	    top.appendChild (text);
  -	} catch (DOMException ex) {
  -	    throw new SAXParseException(getMessage("XDB-004",
  -                    new Object[] { ex.getMessage() }), locator, ex);
  -	}
  +        characters(buf, offset, len);
       }
       
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: crimson-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: crimson-cvs-help@xml.apache.org