Iñaki Baz Castillo
2010-Jan-22 15:16 UTC
About new commit "xpath methods can return things other than nodesets"
Hi, I''m a bit afraid about this recet commit: http://github.com/tenderlove/nokogiri/commit/45c6d1d4902e100fecc3741985870aa4edda9a25 "xpath methods can return things other than nodesets" In my case I use Nokogiri in a server application which receives Xpath strings from remote clients and performs such Xpath operation within a XML document stored in the server. However I do a strict pre-parsing of the Xpath string so it must have the form of a "typical" Xpath ("ns1:root/ns2:child/ns2:somenode[@name=''lala'']"). The server application expects to get a NodeSet after performing the Xpath operation and evaluates it (empty, number of entries....) by alwasying inspecting the NodeSet#size method. Should I care about this new commit? Could occur that Xpath returns something but a NodeSet in my case? Thanks. -- I?aki Baz Castillo <ibc at aliax.net>