require 'rubygems' require 'nokogiri' builder = Nokogiri::HTML::Builder.new{ html{ body{ h1{ "hello, world" } } } } puts builder.to_html ã¾ãã¯ãããçã puts Nokogiri{ html{ body{ h1{ "hello, world" } } } } ã®ããã«æ¸ããã¨ãã§ããã HTMLã®çæ ä¸ã®ä¾ãåç §ã XMLã®çæ builder = Nokogiri::XML::Builder.new{ book{ author{ "yhara" } title{ "..."} } } puts builder.to_xml ã®ããã«ããã to_htmlãto_xmlã«ãªã£ããããã§ãHTMLã®çæã¨éãã¯ãªã è¦ç´ ã®çæ Builder.newã®
Warning. (2019.1) REXML ã¯, æ¨æºæ·»ä»ã§ãã, å質ã»é度ã®ä¸¡é¢ã§ãã¾ãããããã¾ãããNokogiri (é¸) ãã¡ã¸ã£ã¼ã§ãé·ããæ¨æºã®å°ä½ã§ä½¿ããã¦ãã¾ããREXML ã®3åéãã æè¿ã¯, å¤§é¸ (ãã) ã®äººæ°ãé«ããã¹ã¬ããã»ã¼ããé«éãæ©è½æ§ããããYorick Peterse / oga · GitLab REXMLã®ç¹å¾´ REXMLã¯ã XML 1.0ã«æºæ ãããé«éãªXMLãã¼ãµã§ãDOMããªã¼ãçæããããXMLææ¸ãèªã¿ãªããã³ã¼ã«ããã¯ããã (SAX2ã¹ããªã¼ã ãã¼ãµ) ãã¨ãã§ããã XPathã®å®è£ ãå«ã¿ãæ¤ç´¢å¼ã«ãã£ã¦DOMããªã¼ã®å¥½ããªè¦ç´ ãåãåºããã¨ãã§ããã Ruby 1.8.5ã«ã¯REXML 3.1.4ãæ·»ä»ããã¦ããããã¥ã¼ããªã¢ã«ãAPIãªãã¡ã¬ã³ã¹ã¯ä¸è¨ã§è¦ããããããAPIãªãã¡ã¬ã³ã¹ã®ã»ãã¯ä¸ååãã¤èª¤ããããã
æ¥æ¬èªã® REST ã®ãªã½ã¼ã¹éã以åä½ã£ãã®ã ãã æ¥æ¬èªã§ã¯ä¸è¬äººåãã®è§£èª¬ããªãã sheepman æ°ã® REST ã®ãã¼ã¸ã¯ãã°ããããã ãã©ãå¤å°ããã£ã¦ãã人åãã ã å¸å±±æ°ã®ãã¬ã¼ã³è³æ㯠RoyF ã®è«æã詳ãã解説ãã¦ãã¦ããã®ã ããã©ããããããã¢ã«ãããã¯ãããã æè¡çãªè¦ç´ ãæãã¤ã¤ãå ¥éè ã«ããããããã解説ã¯ãªããã®ãã¨æ¢ãã¦ããã®ã ããã¿ã¤ãããªãã è±èªã®ææ¸ã訳ããã¨ãèãããã ãã©ããã¾ããããã®ãè¦ã¤ãããªãã ã§ãçµå±èªåã§æ¸ããã¨ã«ããã æåã¯ã²ã¨ã¤ã®ãã¹ãã§æ¸ã¾ããã¤ããã ã£ããã ãã©ãæ¸ãå§ãããé·ããªã£ã¦ãã¾ã£ãã®ã§ãè¤æ°ã®ãã¹ãã«åãããã¨ã«ããã ãããããªãã¨ãæ¸ããããå 容ã¯ããªããããã·ãã¨ãã£ãã¬ãã«ã ããã åæ¸ããé·ããªã£ããã©(ããããå§ã¾ãã§ããã§ãã¾ã調ãªã®ã¯å ¥éè¨äºã ãã)ã ãã®è¨äº(ããå§ã¾ãä¸é£ã®ãã¹ã)ã¯
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}