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/08/24 16:28:54 UTC

[DO NOT REPLY: Bug 3257] New: Whitespace stored as PI data.

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=3257

*** shadow/3257	Fri Aug 24 07:28:54 2001
--- shadow/3257.tmp.20799	Fri Aug 24 07:28:54 2001
***************
*** 0 ****
--- 1,57 ----
+ +============================================================================+
+ | Whitespace stored as PI data.                                              |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3257                        Product: Xerces-C++              |
+ |       Status: NEW                         Version: 1.5.1                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: SAX/SAX2                |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-c-dev@xml.apache.org                                  |
+ |  Reported By: kayingl@ca.ibm.com                                           |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ ---------------------------------
+ Overview Description: 
+ ---------------------------------
+ When trying to print the PI target and PI data from the processingInstruction 
+ method, whitespace is printed for empty data.
+ 
+ ---------------------------------
+ Steps to Reproduce: 
+ ---------------------------------
+ 1. Copy and paste the following into a file and save it as test.xml:
+ <?xml version="1.0"?>
+ <!DOCTYPE student [
+ 	<!ELEMENT student (#PCDATA)> 
+ ]>
+ 
+ <?MyInstruct ?>
+ <student>My Name is SnowMan. </student>
+ 
+ 2. Run the SAXPrint/SAX2Print sample with the xml file
+ 
+ ---------------------------------
+ Actual Results:  
+ ---------------------------------
+ <?xml version="1.0" encoding="LATIN1"?>
+ <?MyInstruct ?><student>My Name is SnowMan. </student>
+ 
+ ---------------------------------
+ Expected Results:  
+ ---------------------------------
+ <?xml version="1.0" encoding="LATIN1"?>
+ <?MyInstruct?><student>My Name is SnowMan. </student>
+ 
+ ---------------------------------
+ Additional Information: 
+ ---------------------------------
+ From the SAX2 ContentHandler processingInstruction method JavaDoc comments:
+ 
+      * @param target The processing instruction target.
+      * @param data The processing instruction data, or null if
+      *        none was supplied.  The data does not include any
+      *        whitespace separating it from the target.

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