I have a very simple question which I have been completely unable to find an answer to. I have a very basic knowledge of Ruby and Nokogiri.I have data that looks like:\[code\]<release> <artists> <artist> <name>Johnny Mnemonic</name> </artist> <artist> <name>Constantine</name> </artist> <artists><release>\[/code\]For each release I want only the data from the first tag. I have tried the following code but it pulls all from the artists:\[code\]page = Nokogiri::XML(open("37.xml"))page.xpath("//artists[1]").each do |el|File.open("#{LOCAL_DIR}/37.txt", 'a'){|f| f.write(el)}\[/code\]Any help or pointers in teh right direction would be immensely appreciated.