comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Bug in the SAX parser?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Bug in the SAX parser? [message #52102] Tue, 09 January 2007 06:34 Go to previous message
mattf is currently offline  mattf
Messages: 13
Registered: January 2007
Junior Member
Just ran into a, uh, interesting problem with the SAX parser in IDL. At
one point in processing an XML file, I have to remove the ignorable
white space-- so I wrote a 'remove_white' subclass of the SAX parser to
do that (a good exercise, btw, for anyone who's learning about this
stuff). However, it turns out that the file I want to process has
two-byte characters-- the 'remove_white' parser isn't bothered by that,
but it appears to have a problem with recognizing a Windows newline
(i.e., linefeed + carriage return) in two-byte character form.
Specifically, it spots the carriage return, but not the linefeed-- so,
my output file still has all the linefeeds. This is easy enough to deal
with, in the subclassed 'Chars' method I test for

chars[0] ne string(10B)

before sending the string to the output file. But I think it's a bug.
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Bug in the SAX parser?
Next Topic: Re: IDLtoAVIGENERATOR gives unexpected output when dimension is not power of 2?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:52:09 PDT 2025

Total time taken to generate the page: 0.00439 seconds