Verbatim environment inside LaTeX cell?

Viewed 17082

I would like to insert some XML inside a LaTeX table, so I thought that \begin{verbatim}.. will be a good solution for preserving the syntax, but it does not work like this:

\begin{tabular}{ ll }
   sample & 
   \begin{verbatim}
      <how>
          <to value="make" />
          <this value="work" />
      </how>
   \end{verbatim}
\end{tabular}

How can I make this work?

3 Answers
Related