Unless you have a DTD or Schema and are validating your content, the ignorableWhitespace SAX event will not be called by the parser.  Without a grammar, how is the parser to know what is important and what is ignorable?  The whitespace you're looking for is probably showing up in the characters SAX event between endElement and startElement calls.
 
Brion
-----Original Message-----
From: Colin Chalmers [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 26, 2002 3:11 AM
To: [EMAIL PROTECTED]
Subject: help - stupid chars

Hi,
 
I have to be overlooking something simple, plz give me a kick.
 
I'm trying to parse XML using my own ContentHandler. Parsing seems to go OK but I'm missing the '\r' character which causes other problems.
 
I thought this would be an ignorableWhitespace which I could pick up but the parser doesn't seem to enter this method.
 
What am I doing wrong? I'm using version 2.0.2
 
Thx
 
/c

Reply via email to