Thanks for replying. Yes, I tried to catch all exceptions using the catch
(...) phrase. However, the parser didn't throw an exception, and my
application never caught any exceptions. and the crash actually happens
inside the parser code and not my application. I thought there might be
some sort of flags that I could set so that the parser could throw
exceptions in cases such as this.

Regards,
Xuefu



                                                                                       
                                                  
                      david_n_bertoni@                                                 
                                                  
                      us.ibm.com               To:      [EMAIL PROTECTED]              
                                        
                                               cc:                                     
                                                  
                      10-30-2003 16:52         Subject: Re: crash when using dom 
parser to parse an invalid xml file                     
                      Please respond                                                   
                                                  
                      to xerces-c-dev                                                  
                                                  
                                                                                       
                                                  
                                                                                       
                                                  








Are you catching the appropriate exceptions?  If not, your application will
crash.  See the sample applications and the documentation for more
information.

Dave




                      [EMAIL PROTECTED]

                      .com                     To:
[EMAIL PROTECTED]

                                               cc:      (bcc: David N
Bertoni/Cambridge/IBM)

                      10/30/2003 04:33         Subject: crash when using
dom parser to parse an invalid xml file
                      PM

                      Please respond

                      to xerces-c-dev





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