Return-Path: Delivered-To: apmail-xml-general-archive@xml.apache.org Received: (qmail 53010 invoked by uid 500); 29 Jun 2001 14:17:24 -0000 Mailing-List: contact general-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: general@xml.apache.org Delivered-To: mailing list general@xml.apache.org Received: (qmail 52990 invoked from network); 29 Jun 2001 14:17:23 -0000 Message-ID: <3B3C8DED.90D260F4@sonicsoftware.com> Date: Fri, 29 Jun 2001 10:17:17 -0400 From: "Irene Levina" Organization: Sonic Software Corporation X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: general@xml.apache.org Subject: Re: SAXParser and white space problem References: <3B391369.753B45CF@sonicsoftware.com> <002c01c10005$5bbc2d20$38a3f1ce@mitretek.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi Thomas, Thanks for respond, I did solve my problem by using characters() and LexicalHandler.startCData() and LexicalHandler.endCData() callbacks to collect data that splits multiple lines in DATA content. /////////////////////////// startCData(){ isCDATA = true; } characters(.....) { if(isCDATA) //collect data } endCDATA() { //reset flag //process collected data } ///////////////////////////// Thanks , Irene Levina. "Thomas B. Passin" wrote: > [Irene Levina] > > > If same data split into multiple lines, such as : > > > > > > Hello, world!]]> > > > > > > length parameter repoted just a whitespace, and I can't not get actual > > character data that I'm looking for. Is this bug was fixed in any new > > version of SAXParser? > > That's because your data contains three nodes, not one > 1) a whitespace-only node holding the first newline and it looks like some > spaces as well. > 2) the expected CDATA node, and > 3) another whitespace-only node holding the second newline. > > It's not a bug, it reflects your data. I'm not sure whether SAXParser has > settings to merge the whitespace-only nodes with the other nodes. Otherwise > you have to make sure to collect all these nodes, not just the CDATA one. > > Tom P > > --------------------------------------------------------------------- > In case of troubles, e-mail: webmaster@xml.apache.org > To unsubscribe, e-mail: general-unsubscribe@xml.apache.org > For additional commands, e-mail: general-help@xml.apache.org --------------------------------------------------------------------- In case of troubles, e-mail: webmaster@xml.apache.org To unsubscribe, e-mail: general-unsubscribe@xml.apache.org For additional commands, e-mail: general-help@xml.apache.org