[xml] libxml2/xmlwrapp win32 exception
- From: Pidgeon Gareth <Gareth Pidgeon cubic com>
- To: "'xml gnome org'" <xml gnome org>
- Cc: "'igor zlatkovic com'" <igor zlatkovic com>
- Subject: [xml] libxml2/xmlwrapp win32 exception
- Date: Fri, 21 May 2004 11:25:03 +0100
Hi there i am using the win32 libxml2 binaries from
http://www.zlatkovic.com/libxml.en.html
together with xmlwrapp http://pmade.org/software/xmlwrapp/ however when I
try to
parse this xml:
<RLSOLVE_MSG version="1.0">
<RESPONDER version="1.1.003" relDate="2003-09-01">
<NAME> SmartSwitch </NAME>
</RESPONDER>
<RESPONSE replyFormat="standard" followOnMsg="no">
<REQUESTER>
<SOURCE id="1"/>.
<TRANS_NUM> 1 </TRANS_NUM>
</REQUESTER>
<PROBE_RESPONSE target="SmartSwitch"/>
</RESPONSE>
</RLSOLVE_MSG>
I get an exception during xmlCopyNode in the xmlwrapp function as follows:
xml::node::node (const node &other) {
std::auto_ptr<node_impl> ap(pimpl_ = new node_impl);
pimpl_->xmlnode_ = xmlCopyNode(other.pimpl_->xmlnode_, 1); <**** here
if (!pimpl_->xmlnode_) throw std::bad_alloc();
ap.release();
}
I am trying to catch any std::exceptions and end up catching this exception
with a catch (...) so I guess its something libxml isn't expecting... I am
wondering if there is any way get any more information from libxml regarding
the excetion ?
Also I tried this with xmllint which works fine (now I have the latest win32
binaries).
Thanks
Gareth
**********************************************************************
This document is intended for, and should only be read by,
those persons to whom it is addressed. Its contents are
confidential and if you have received this message in error,
please delete it and notify us immediately, e-mail
"postmaster cts-ltd co uk". Any form of reproduction,
dissemination, copying, disclosure, modification, distribution
and / or publication of this message without our prior
written consent is strictly prohibited.
Any views expressed in this message are those of the
individual sender, and do not necessarily represent the
position of CTSL. Furthermore CTSL does not authorise
or use e-mail for official contractual correspondence.
Nothing received in e-mail has any contractual validity.
CTSL and each legal entity in Cubic Corporation reserve
the right to monitor all e-mail communications through
its networks.
This footnote also confirms that this email message has
been checked for known computer viruses.
**********************************************************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]