I've found no good existing regexp-based code for syntax-highlighting XML (although this looks helpful), so I'm starting in on my own, by adapting the QT example app which highlights C++. I've changed library and class names, and made one change to highlight XML comments.