资 源 简 介
KindDom is an XML DOM XPath finder developed at Scout Labs within Ruby on Rails.
This small behavioral wrapper around libxml-ruby provides graceful transformation of the content inside XML responses.
Three Methods to Access XML Content
#content_for
An XPath-based content selector, returning the content of the first selected node. When content is found, the closure (block) is called with the content, enabling usage similar to a visitor pattern. This pattern allows your XML consumer to gracefully skip code for missing content.
#first_of, #collection_of
XPath-based node selection, returning "kind" nodes, with the same closure & default behaviors as #content_for.
News
Oct-10-2008 — After months of development, testing & usage within our Rails app, and now compatibility w