This function exports trees & character data in XML format.
export.as.xml(file, trees, X)
filename for export.
a phylogenetic tree or trees in "phylo"
or "multiPhylo"
format.
a matrix of class "DNAbin"
or a matrix with discretely valued non-DNA character data.
A file.
Can be used to create input file for the program SIMMAP v1.5 (Bollback 2006), also see: http://www.simmap.com.
Bollback, J. P. (2006) Stochastic character mapping of discrete traits on phylogenies. BMC Bioinformatics, 7, 88.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.