jassa / hyper_api

Hypertext API. A sweet DSL to create objects off HTML.
MIT License
81 stars 1 forks source link

Allow XPath queries to extract attributes #2

Closed renechz closed 10 years ago

renechz commented 10 years ago

It seems Nokogiri::XML::NodeSet#css already supports XPath queries, by parsing the CSS selector to XPath.

Using Nokogiri::XML::NodeSet#search makes it more explicit that XPath can be used.

jassa commented 10 years ago

Nice :smiley: gracias