- From: Ailleen Lien <alien@clientsoft.com>
- Date: Mon, 29 Jan 2001 12:38:43 -0500
- To: "'Wayne W. Ziebarth'" <ziebarthw@ctcdist.com>
- Cc: www-lib@w3.org
Received on Monday, 29 January 2001 12:38:58 UTC
Hi, Attached is a sample which I get from Expat XML parser. Hope it helps. Ailleen Lien -----Original Message----- From: Wayne W. Ziebarth [mailto:ziebarthw@ctcdist.com] Sent: Monday, January 29, 2001 11:42 AM To: www-lib@w3.org Subject: Gaining access to the return code of XML_Parse () How can I get access to the return code of XML_Parse() in the HTXML.c source module that is called in HTXML_write()? The HTStream *me->state is set to HT_ERROR if XML_Parse() fails (i.e. it is parsing an ill-formed XML document), but the function HTXML_write() always returns HT_OK. In my terminate handler function for the XML HTRequest object, the status parameter is 200 - HTERR_OK. Is there any way to know that the XML parser was unable to successfully parse the document? Can I get at me->state from within the terminate handler? Thank you, Wayne Ziebarth
Received on Monday, 29 January 2001 12:38:58 UTC