Get the first element and first child : XPath « XML « Ruby. ... require 'rexml/document' doc = REXML::Document.new xml doc.elements[1] # => <aquarium> .
確定! 回上一頁