Re: [libxml++] Node's xpath methods
- From: Stefan Seefeld <seefeld sympatico ca>
- To: libxmlplusplus-general lists sourceforge net
- Subject: Re: [libxml++] Node's xpath methods
- Date: Mon, 17 Feb 2003 09:07:00 -0500
Rasmus Kaj wrote:
How about having a class XPath as a parameter to find, and an
(explicit) constructor from std::string to XPath? That way, one can
write "mynode.find(XPath(my_xpath_string));" if one have a string.
Also, the XPath constructor could (in the future) actually parse the
xpath, so that doesn't have to be done for every find().
agreed. Why would you make the XPath constructor explicit ?
I think it would be just fine to let the user specify
'find("foobar")' and not being aware of the implicit XPath object.
Regards,
Stefan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]