+In addition to !BioRuby, a libxml Ruby binding is also required. This can be installed with the following command:
+
+{{{
+% gem install -r libxml-ruby
+}}}
+
+This example reads file "example.xml" and stores its [http://www.phyloxml.org/ phyloXML]-formatted trees in variable 'trees'.
+
+{{{
+#!/usr/bin/env ruby
+require 'bio'
+
+# This creates new phyloXML parser.
+trees = Bio::PhyloXML::Parser.new('example.xml')
+
+# This prints the names of all trees in the file.
+trees.each do |tree|
+ puts tree.name
+end
+
+# If there are several trees in the file, you can access the one you wish via index.
+tree = trees[3]
+
+}}}
+
+
+====Nexus Format====
+
+_... to be done_
+
+{{{
+#!/usr/bin/env ruby
+require 'bio'
+
+}}}