Here is the example that fails
\documentclass{standalone}
\usepackage{tikz}
\usepackage{float}
\usepackage{listings}
\usepackage{color}
\usepackage{textcomp}
\usetikzlibrary{shapes,positioning}
\begin{document}
\centering
\resizebox{5.00in}{!}{
\begin{tikzpicture}
\node[draw] (PersonLocation Graph) {
\begin{minipage}{.85\linewidth}
\begin{lstlisting}[language=XML,escapechar=!]
<collection name=PersonLocation BiMap>
<edge>
<ref>//collection[name=Locations]/loc[name=XXYY]
</ref>
<ref>//collection[name=Persons]/person[id=4564]
</ref>
</edge>
...
...
...
</collection>
\end{lstlisting}
\end{minipage}
};
\end{tikzpicture}
}
\end{document}