I want to extract parts of an XML file and make a note that I extracted some part in that file, like "here something was extracted". I'm trying to do this with Nokogiri, but it seems to not really be documented on how to: delete all childs of a <Nokogiri::XML::Element> change the inner_text of that complete element Any clues?