Hi,
  I am trying to use Xerces/Xalan to parse a XML document and then
using XPath support to extract some values out of that. Everything
works fine for correct XML documents. But if the XML document is
incorrect (not a well-formed XML), the program gives segmentation
fault and crashes! What I expect is to get an error/exception and
continue processing other documents.

Please help. Attached is the CPP file. Compile it on Red Hat
Linux 7.1. The program has a main function that passes an
incorrect XML file for parsing, which crashes it.

The Xerces and Xalan versions I am using are as follows:

Xerces-c1_5_1-linux
Xalan-C_1_2-linux

And Linux used in Red Hat Ver. 7.1


Thanks and regards,


Himanshu

Attachment: getValue.cpp
Description: Binary data

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

Reply via email to