unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: "Iñaki Baz Castillo" <ibc@aliax.net>
To: mongrel-unicorn@rubyforge.org
Subject: About new commit "xpath methods can return things other than nodesets"
Date: Fri, 22 Jan 2010 16:16:41 +0100	[thread overview]
Message-ID: <201001221616.41818.ibc@aliax.net> (raw)

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@aliax.net>
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

             reply	other threads:[~2010-01-22 15:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-22 15:16 Iñaki Baz Castillo [this message]
2010-01-22 16:05 ` About new commit "xpath methods can return things other than nodesets" Iñaki Baz Castillo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201001221616.41818.ibc@aliax.net \
    --to=ibc@aliax.net \
    --cc=mongrel-unicorn@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).