On Tuesday 19 February 2002 02:23 pm, you wrote: > At 10:16 AM -0500 2/19/02, Anthony W. Marino wrote: > >Using SAX "characters()" event handler I get 2 different interpretations > > of the expansion of an external file. This external file is nothing more > > than a text file with several lines of text and the first line is an XML > > comment line. > > At first glance, it looks like both cases are providing you with the > exact same data. One breaks it up into a surprisingly large number of > parts, but both provide exactly the same information (unless I missed > something picky in the white space).
I'm already certain that both X1 and X2 give me the same data, however, my concern was the extreme differences in how it gives it to me (see examples below). >In general SAX does not > guarantee how many separate characters it will stuff into each call > to characters. Your code needs to be written in such a way that it > can handle extreme cases like every single character resulting in a > separate call to characters(). > Is this something that's documented or just your observation of X1 and X2? > See http://www.cafeconleche.org/books/xmljava/chapters/ch06s07.html for > details Thanks, Anthony --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
