Since you just want to validate the XML file and don't need to access any
data from that you should use SAX. If you use DOM parser it will create the
whole document model in memory which is not required in this case and is
costly because it needs 1GB of memory

Gopal.


                                                                                
                               
                      "Shanmugasundram                                          
                               
                      T - CTD,                 To:       [EMAIL PROTECTED]      
                    
                      Chennai."                cc:                              
                               
                      <[EMAIL PROTECTED]        Subject:  Parsing a large XML 
file.                             
                      tech.com>                                                 
                               
                                                                                
                               
                      03/25/03 03:51 PM                                         
                               
                      Please respond to                                         
                               
                      xerces-j-user                                             
                               
                                                                                
                               
                                                                                
                               



I have a big XML file of size about 1GB. I want to validate that file
against a XML Schema and log errors. Should i use SAX or DOM Parser to do
this? Please note i want just to call the parser.parse() method which
validate the xml file against the XML schema and the ErrorHandler will
create the log. So for this which parser will be faster DOM or SAX.

thanks,
Shunmu

---------------------------------------------------------------------
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