You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/09/04 07:41:58 UTC

[DO NOT REPLY: Bug 3395] New: ignorable whitespace in DOMParser broken

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3395

*** shadow/3395	Mon Sep  3 22:41:58 2001
--- shadow/3395.tmp.18772	Mon Sep  3 22:41:58 2001
***************
*** 0 ****
--- 1,40 ----
+ +============================================================================+
+ | ignorable whitespace in DOMParser broken                                   |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3395                        Product: Xerces-C++              |
+ |       Status: NEW                         Version: Nightly build           |
+ |   Resolution:                            Platform: Macintosh               |
+ |     Severity: Normal                   OS/Version: Linux                   |
+ |     Priority: Other                     Component: DOM                     |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-c-dev@xml.apache.org                                  |
+ |  Reported By: jason@openinformatics.com                                    |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL: http://http://                                               |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ This bug is still active in the latest nightly build.
+ 
+ when setIncludeIgnorableWhitespace(0) is used, whitespace in element content is
+ included (but is not for SAXParser), and if the default value is used, the text
+ nodes are not properly marked as ignorable.
+ 
+ In the debugger, DOMParser::ignorableWhitespace() is called only once for a 16
+ element XML file, and fWithinElement is false, so it seems to have something to
+ do with whatever calls ignorableWhitespace()
+ 
+ First reported in email:
+ 
+ Subject:  ignorable whitespace being added as text nodes in Xerces/C 1.5.0
+ From:     "Dodd, Tim (ISS Atlanta)" <TD...@iss.net>
+ Date:     2001-07-13 19:42:12
+ 
+ I am parsing a document with element-only content using Xerces/C 1.5.0.  I'm
+ using DOMParser's setIncludeIgnorableWhitespace() method to set the "include
+ ignorable whitespace" flag to false, but the parser is still adding text
+ nodes to the tree for ignorable whitespace (in this case, for the whitespace
+ indentation at the front of lines).  I've enabled validation by calling
+ setDoValidation(true), have the validation scheme set to Val_Auto, and am
+ using schemaLocation in my document to specify my namespaces & associated
+ schemas.  Is there something more I need to do?

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org