Return-Path: Delivered-To: apmail-xml-xerces-c-dev-archive@www.apache.org Received: (qmail 7734 invoked from network); 3 Mar 2005 07:46:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Mar 2005 07:46:56 -0000 Received: (qmail 45904 invoked by uid 500); 3 Mar 2005 07:46:54 -0000 Delivered-To: apmail-xml-xerces-c-dev-archive@xml.apache.org Received: (qmail 45874 invoked by uid 500); 3 Mar 2005 07:46:53 -0000 Mailing-List: contact xerces-c-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: xerces-c-dev@xml.apache.org list-help: list-unsubscribe: List-Post: Delivered-To: mailing list xerces-c-dev@xml.apache.org Received: (qmail 45861 invoked by uid 99); 3 Mar 2005 07:46:53 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Mar 2005 23:46:53 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j237kok4016221 for ; Thu, 3 Mar 2005 08:46:50 +0100 Message-ID: <522528197.1109836010080.JavaMail.jira@ajax.apache.org> Date: Thu, 3 Mar 2005 08:46:50 +0100 (CET) From: "Alberto Massari (JIRA)" To: xerces-c-dev@xml.apache.org Subject: [jira] Closed: (XERCESC-1361) CRLF is translated to LF in scanCharData In-Reply-To: <679763070.1109821488815.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/XERCESC-1361?page=history ] Alberto Massari closed XERCESC-1361: ------------------------------------ Resolution: Invalid > CRLF is translated to LF in scanCharData > ---------------------------------------- > > Key: XERCESC-1361 > URL: http://issues.apache.org/jira/browse/XERCESC-1361 > Project: Xerces-C++ > Type: Bug > Components: SAX/SAX2 > Versions: 2.6.0 > Environment: win2k, Xerces-c 2.6(build the src with vc6+sp5) and Xerces-c 2.1 binary version > Reporter: ding hua > > When i parse a simple xml document. there is a CRLF between aaa and bbb. But saxparse call method characters, the string is translated to aaa LF bbb. It loses the char CR. > >
aaa > bbb >
> And i trace the code, i find the char is eated up by handleEOL. I want keep the content unchanged. Is it reasonable? Thanks. > The call stack > xercesc_2_6::XMLReader::handleEOL(unsigned short & 0x000d, unsigned char 0x00) line 898 > xercesc_2_6::XMLReader::getNextCharIfNot(const unsigned short 0x003c, unsigned short & 0x000d) line 789 > xercesc_2_6::ReaderMgr::getNextCharIfNot(const unsigned short 0x003c, unsigned short & 0x000d) line 398 > xercesc_2_6::IGXMLScanner::scanCharData(xercesc_2_6::XMLBuffer & {...}) line 2630 + 17 bytes > xercesc_2_6::IGXMLScanner::scanContent() line 837 > xercesc_2_6::IGXMLScanner::scanDocument(const xercesc_2_6::InputSource & {...}) line 204 + 8 bytes > xercesc_2_6::SAXParser::parse(const xercesc_2_6::InputSource & {...}) line 720 > internal\XMLReader.hpp Ln895 > if ( fCharBuf[fCharIndex] == chLF || > ((fCharBuf[fCharIndex] == chNEL) && fNEL) ) > { > fCharIndex++; > } -- 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