2009å¹´11æ13æ¥ from_xml ã§ç°¡åã«XMLããã¼ã¹ active-supportã®æ¡å¼µã¡ã½ããã§ãã from_xml ã使ãã¨ãXMLãããã·ã¥ã«å¤æã§ãããã¨ãç¥ã£ããREXMLã使ã£ã¦èªåã§ãã¼ã¹ããããã楽ã ⪠ä¸è¨ã¯Yahooã®é¢é£æ¤ç´¢ãã¼ã¯ã¼ãAPIã®çµæã®XMLããã¼ã¹ããå ´åã®ä¾ã require 'activesupport' require 'open-uri' require 'pp' h = Hash.from_xml(open('http://search.yahooapis.jp/AssistSearchService/V1/webunitSearch?appid=<ãã¼å>&query=%e6%b2%96%e7%b8%84&results=2').read) pp h['ResultSet'] å®è¡çµæã¯ãããªæãã {"firstResultP
{{#tags}}- {{label}}
{{/tags}}