\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k+kn}{import} \PYG{n+nn}{sys}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{Phylo}\PYG{o}{.}\PYG{n}{write}\PYG{p}{(}\PYG{n}{tree}\PYG{p}{,} \PYG{n}{sys}\PYG{o}{.}\PYG{n}{stdout}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}phyloxml\PYGZdq{}}\PYG{p}{)}

\PYG{g+go}{\PYGZlt{}phy:phyloxml xmlns:phy=\PYGZdq{}http://www.phyloxml.org\PYGZdq{}\PYGZgt{}}
\PYG{g+go}{  \PYGZlt{}phy:phylogeny rooted=\PYGZdq{}true\PYGZdq{}\PYGZgt{}}
\PYG{g+go}{    \PYGZlt{}phy:clade\PYGZgt{}}
\PYG{g+go}{      \PYGZlt{}phy:branch\PYGZus{}length\PYGZgt{}1.0\PYGZlt{}/phy:branch\PYGZus{}length\PYGZgt{}}
\PYG{g+go}{      \PYGZlt{}phy:color\PYGZgt{}}
\PYG{g+go}{        \PYGZlt{}phy:red\PYGZgt{}128\PYGZlt{}/phy:red\PYGZgt{}}
\PYG{g+go}{        \PYGZlt{}phy:green\PYGZgt{}128\PYGZlt{}/phy:green\PYGZgt{}}
\PYG{g+go}{        \PYGZlt{}phy:blue\PYGZgt{}128\PYGZlt{}/phy:blue\PYGZgt{}}
\PYG{g+go}{      \PYGZlt{}/phy:color\PYGZgt{}}
\PYG{g+go}{      \PYGZlt{}phy:clade\PYGZgt{}}
\PYG{g+go}{        \PYGZlt{}phy:branch\PYGZus{}length\PYGZgt{}1.0\PYGZlt{}/phy:branch\PYGZus{}length\PYGZgt{}}
\PYG{g+go}{        \PYGZlt{}phy:clade\PYGZgt{}}
\PYG{g+go}{          \PYGZlt{}phy:branch\PYGZus{}length\PYGZgt{}1.0\PYGZlt{}/phy:branch\PYGZus{}length\PYGZgt{}}
\PYG{g+go}{          \PYGZlt{}phy:clade\PYGZgt{}}
\PYG{g+go}{            \PYGZlt{}phy:name\PYGZgt{}A\PYGZlt{}/phy:name\PYGZgt{}}
\PYG{g+go}{            ...}
\end{Verbatim}
