Try parsing the file with one of the standalone sample programs, like DOMPrint. If that works, then its nothing to do with the XML text you are parsing, and its just an error in your program probably causing an access violation or something. That's not something anyone but you can figure out.

--------------
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROTECTED]

-----Original Message-----
From: Emma Towey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 10:51 AM
To: [EMAIL PROTECTED]
Subject: error thrown by parser

 

Hi,

I'm having a bit of a problem with the parser.

When my program parses a file it returns an error. The error returned is not of type XMLException or of type DOM_DOMException.

 

 

   try

    {

        parser->parse(gXmlFile);

    }

 

    catch (const XMLException& e)

    {

        cerr << "An XMLException error occured during parsing\n   Message: "

             << DOMString(e.getMessage()) << endl;

        errorsOccured = true;

    }

 

 

    catch (const DOM_DOMException& e)

    {

       cerr << "A DOMException error occured  during parsing\n   Message: "

             << DOMString(e.msg) << endl;

        errorsOccured = true;

    }

 

    catch (...)// an error is occuring here

    {

        cerr << "A general error occured during parsing\n " << endl;

        errorsOccured = true;

    }

 

I was wondering how to find out what type of error is occurring and how to fix it.

Thanks,

Emma



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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

Reply via email to