You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Himanshu Verma <hi...@intersolutions.stpn.soft.net> on 2002/01/31 05:28:30 UTC

A problem with C Xerces/Xalan on Linux

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