You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/07/08 20:45:44 UTC
DO NOT REPLY [Bug 10564] New: -
Error while parsing UTF-8 characters in CDATA
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10564>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10564
Error while parsing UTF-8 characters in CDATA
Summary: Error while parsing UTF-8 characters in CDATA
Product: Xerces2-J
Version: 2.0.0 [alpha]
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: SAX
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: knanda@ecomxml.com
I get the following error while parsing an XML document (encoding="UTF-8") with
a CDATA section containing a 0x0C character in it. According to my
understanding (please correct me if I'm wrong) UTF-8 characters can range from
0x00 to 0x7F. Assuming that is correct why does the parser throws an error
while parsing any XML element containing a 0x0c charater. Here is the stack
trace:
org.xml.sax.SAXException: Stopping after fatal error: An invalid XML character
(Unicode: 0xc) was found in the CDATA section.
at org.apache.xerces.framework.XMLParser.reportError
(XMLParser.java:1228)
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError
(XMLDocumentScanner.java:644)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch
(XMLDocumentScanner.java:1356)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome
(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at com.ecomxml.ecomtalk.framework.exml.wrappers.XML_ecomTalk_ex.print
(XML_ecomTalk_ex.java:789)
at com.ecomxml.ecomtalk.framework.exml.wrappers.XML_ecomTalk_ex.FromXML
(XML_ecomTalk_ex.java:773)
at com.ecomxml.ecomtalk.framework.exml.wrappers.XML_ecomTalk_ex.<init>
(XML_ecomTalk_ex.java:517)
at com.ecomxml.ecomtalk.framework.exml.wrappers.XML_ecomTalk_ex.main
(XML_ecomTalk_ex.java:1047)
One of the element data is like this:
<someelement><![CDATA[
Wednesday, June 26, 2002, 1:58:51 PM
EST Page 1 of 3
PR & D Number:]]>
</someelement>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org