W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2001

RE: Gaining access to the return code of XML_Parse ()

From: Wayne W. Ziebarth <ziebarthw@ctcdist.com>
Date: Wed, 31 Jan 2001 09:59:12 -0600
To: "Ailleen Lien" <alien@clientsoft.com>
Cc: <www-lib@w3.org>
Message-ID: <NCBBINPNFJAEHHFEMEAOEENDDHAA.ziebarthw@ctcdist.com>
Unfortunately, this does not help. If I use the expat library directly and
call XML_Parse(), I can easily evaluate if it passed or failed. However,
when used as part of libwww, it isn't called directly by my application and
I can't see how to get its return value when the HTEventList_loop() exits.

Thanks anyway,


-----Original Message-----
From: Ailleen Lien [mailto:alien@clientsoft.com]
Sent: Monday, January 29, 2001 11:39 AM
To: 'Wayne W. Ziebarth'
Cc: www-lib@w3.org
Subject: RE: Gaining access to the return code of XML_Parse ()

   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

Thank you,

Wayne Ziebarth
Received on Wednesday, 31 January 2001 10:59:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:53 UTC