SAX XML Parser

This is a discussion on SAX XML Parser within the C++ Programming forums, part of the General Programming Boards category; Hi,
I am using VS 2005 and trying to implement the Xerces-C++ parser.
Everything is linked and compiles ok - ...

SAX XML Parser

Hi,

I am using VS 2005 and trying to implement the Xerces-C++ parser.
Everything is linked and compiles ok - I am using the example supplied (below).
When I run it I get a runtime unhandled error exception and the program terminates. This happens on the line parse->parse(xmlFile).

I don't know the library, but my guess is that 'parse' expects the actual data (not the file name). It is odd that the exception isn't caught before the last handler, though. Look into the exception hierarchy and make sure there isn't a more basic handler...