yes, domcount app. crashes upon parsing as well.

Regards,
Xuefu


                                                                                       
                                                   
                      "Erik Rydgren"                                                   
                                                   
                      <[EMAIL PROTECTED]         To:      <[EMAIL PROTECTED]>          
                                          
                      darinen.se>               cc:                                    
                                                   
                                                Subject: RE: crash when using dom 
parser to parse an invalid xml file                     
                      10-31-2003 00:19                                                 
                                                   
                      Please respond to                                                
                                                   
                      xerces-c-dev                                                     
                                                   
                                                                                       
                                                   
                                                                                       
                                                   




Input of malformed xml should neither throw nor crash. The parse method
should only return false and the error is reported through the
registered error handler.

Have you initialized Xerces before using any of the classes? Are you
linking with the correct runtime? Try parsing your input document with
the DOMCount example. If the crash persists there then you have found a
bug.

/ Erik

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: den 31 oktober 2003 01:33
> To: [EMAIL PROTECTED]
> Subject: crash when using dom parser to parse an invalid xml file
>
> Hi,
>
> I am new to this mailing list, so please bear with me if this question
had
> been asked before.
>
> I am using dom parser to parse an in memory xml string, the parser
would
> crash the whole application if the xml string is invalid -- for
example,
> one of the "<" is missing for one of the fields. I thought it would
just
> throw an exception --  does anybody have any idea how to prevent the
crash
> from happening?
>
> Regards,
> Xuefu
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to