Subject:SAX parser in JAVA Author:Tony Lavinio Date:19 May 2005 06:46 PM Originally Posted: 17 May 2005 04:24 PM
Since you haven't provided the code for your parser, we can only pretend to guess.
It could be that you have an option set to ignore insignificant whitespace on the Unix box but not on the prior system.
It could be that in moving files, the CR/LF under non-Unix was translated into plain LF under Unix, and somehow that's causing your characters() method not to fire.
It could be that your code assumes that characters() will be called once for each chunk of text, when in fact it can be called multiple times for even a contiguous section of text, and the line-ending-normalization code is causing it to split text where it didn't on the prior system.
Subject:SAX parser in JAVA Author:Tony Lavinio Date:19 May 2005 06:47 PM
At quick glance, it looks like you are assuming characters() will be called once per text node, when in fact it can be called multiple times. You've got to concatenate together all of the text within an element, and use the endElement() event to actually write your output.
Subject:SAX parser in JAVA Author:Tony Lavinio Date:10 Aug 2006 11:54 AM
First, please don't new replies to old messages when they aren't
on the same topic.
Second, how does this involve Stylus Studio?
Third, when asking for help it is useful to specify more details.
Saying 'how can I make it go faster' isn't enough information for
us to use to help you, since we don't know what you've already
done. Assuming this falls into the category of relating to Stylus
Studio, you'd need to post your code so we can see what you are
doing.