I run a simple experimental DOM parser program under
linux with xerces-c1_4. There's no problem with
compiling, but when I run the program, it finishes up
with seg fault and no other error information. I used
GDB to debug the program, and found the bug lies in
the parse function.

The code of the parse function is:

char* xmlFile;

  xmlFile = "../xmlfiles/3045.xml";

  //initialize the DOM parser
  DOMParser *parser = new DOMParser();
  DOMTreeErrorReporter* errReporter;
  parser->setErrorHandler(errReporter);

  bool errorsOccured = false;
  try {
    parser->parse(xmlFile);
  }

Any idea about that? Thanks.

Jemma



__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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

Reply via email to