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: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
