tenderlove/nokogiri — pull request #563 by me (2011-11-08 16:38:39+00:00)
Title: C14n fix and new parameters

I fixed the segfaults when using node selection block. Turns out the block_caller method was assuming that the node parameter is always an xmlNodePtr, when in fact it can also be an xmlNsPtr.

I also added parameters for the other xmlC14NExecute options (mode, inclusive_ns_prefixes and with_comments), and added a Node#canonicalize convenience method.

I think this fixes #226, so maybe we can finally have c14n support in Ruby! But please review the code, since it's the first time I'm working on Nokogiri.