Can't highlight xml syntax with highlight.js
You should escape angle brackets with <
and >
when you want to display them literally. Otherwise you have actual markup within your <code>
element that browsers try to interpret. This has nothing to do with any JavaScript applied to it.
For what it's worth, Google Prettify does render XML blocks properly (without having to encode them as <
.