RE: [libxml++] Node::find( nonexistent_xpath )
- From: Murray Cumming Comneon com
- To: libxmlplusplus-general lists sourceforge net
- Subject: RE: [libxml++] Node::find( nonexistent_xpath )
- Date: Fri, 2 May 2003 08:58:44 +0200
> From: andy glew amd com [mailto:andy glew amd com]
> Q: what should Node::find( nonexistent_xpath )
> return if it is called with an xpath that does not exist?
>
> libxml2 returns 0 xmlXPathEval ...
> which is the "inside" of Node::find(),
> but Node::find() core dumps.
That's not good.
> I.e. libxml2 is better behaved that libxmlpp::find()
> in this regard.
>
> I strongly suspect that libxmlpp should return an empty set.
I guess it should throw an expection. A patch would be very welcome.
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]