Have you tried using a StringBuffer and the append(ch[], offset, len) method
to append your text instead of the built-in Java String append operator
('+')?
I'm not sure if it would make a difference, but if all else is failing....
StringBuffer thisFullTextStringBuffer = new StringBuffer();
public void characters (char[] ch, int offset, int length) {
thisFullTextStringBuffer.append(ch, offset, length);
}
public void endElement (...) {
System.out.println(thisFullTextStringBuffer.toString());
thisFullTextStringBuffer = thisFullTextStringBuffer.delete(0,
thisFullTextStringBuffer.length());
}
Hope this helps!
Brion Swanson
-----Original Message-----
From: Heathcote, Guy [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 19, 2001 9:33 AM
To: '[EMAIL PROTECTED]'
Subject: RE: My SAX character() Callback is introducing spaces...
Barry,
Again, thank you. Unfortunately, whilst your suggested solution would get
rid of the unwanted text, it would also lose the space separators between
each of the co-ord pairs, rendering the result unusable. I was thinking
along similar lines earlier, but don't think there's a way of
differentiating between space introduced by the parser and that already
present in the source data.
Guy Heathcote
Ordnance Survey
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]