[Expat-discuss] whitespace trouble

Allen, Michael B (RSCH) Michael_B_Allen@ml.com
Mon, 27 Aug 2001 19:41:58 -0400


Be very carefull about the code in your CharacterDataHandler
function. The strings passed to it are NOT null terminated and
may not be all of the text (may be broken into adjacent
peices). This is a great place for an error. See how DOMC
handles it in the chardata_fn when building the DOM tree here:

http://auditorymodels.org/domc/src/lib/expatls.c

Mike
> -----Original Message-----
> From:	Glen Hein [SMTP:ghein@thisisa.com]
> Sent:	Monday, August 27, 2001 7:03 PM
> To:	expat-discuss@lists.sourceforge.net
> Subject:	[Expat-discuss] whitespace trouble
> 
> 
> Hello Everybody!
> 
> I'm new to expat and I recently adopted a project that was
> using expat.  Unfortunately, I do not have contact with the
> orginal programmer.  
> 
> I've having a problem with whitespace in the xml structure that
> is to be parsed.  It appears that any whitespace bewtween the 
> xml tags casuse the parser to fail.  
> 
> I have not yet determined if the problem is in expat or in the
> overall application.  
> 
> Is there a known problem with whitespace?  Is there a particular
> area of expat that I should be looking at?  Is whitespace an
> option in expat?
> 
> Thanks,
> Glen Hein
> ghein@thisisa.com
> 
> 
> 
> _______________________________________________
> Expat-discuss mailing list
> Expat-discuss@lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/expat-discuss