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 xe...@xml.apache.org on 2004/10/19 20:03:51 UTC
[jira] Closed: (XERCESC-179) Whitespace stored as PI data.
Message:
The following issue has been closed.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-179
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-179
Summary: Whitespace stored as PI data.
Type: Bug
Status: Closed
Resolution: CANNOT REPRODUCE
Project: Xerces-C++
Components:
SAX/SAX2
Versions:
1.5.1
Assignee:
Reporter: Ka-Ying Lam
Created: Fri, 24 Aug 2001 7:28 AM
Updated: Tue, 19 Oct 2004 11:03 AM
Environment: Operating System: Windows NT/2K
Platform: PC
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.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org