sorted out display of xml snippets