[libxml++] Node::find( nonexistent_xpath )



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.

I.e. libxml2 is better behaved that libxmlpp::find()
in this regard.

I strongly suspect that libxmlpp should return an empty set.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]