Not able to display XML in Wordpress post

admin

Administrator
Staff member
If you want to display an XML fragment in a WordPress post - how do you do that?

Suppose you want to display this:


<family>
<dad>whatever</dad>
<mom>whatever</mom>
</family>


Using the
Code:
[sourcecode language="xml"]
does not help, as it mangles up the XML.
Also, I believe, plugins cannot be used with free version of WordPress ( i.e wordpress.com ) - so, probably that won't be an option.

Using HTML
Code:
<pre>
tag works, but it does not give correct look and feel.
Can any one show me how they have done it?