#Created by Ben Hall - Blog.BenHall.me.uk #Example of how to parse Xml using IronRuby # Include the wrapper require 'xml' # Create the document @document = Document.new('Jim193312BobSmith') # Access root/name elements @document.elements('root/name') do |e| # Output the contents of the element named first puts e.get('first') # Access the element named dob, then output the value of year. e.node('dob') {|y| puts y.get('year')} end