Most of time I found that writing a XML tags in a web page (Specially in blogger) is a really tricky task. There are some thrid party java scripts and css files which allow us this functionality. But since they are hosted in remotely there may be a risk of losing our blog data.for an example you can try
. Here you can specify any programming language syntax as well as XML syntax.But if we have an option to keep our own CSS then the stability of our blog is higher than the previous case. I found following way of doing blog postings for XML syntax files.
Post
Following is a sample of XML file i create using the css content mention in above post.