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
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
tag works, but it does not give correct look and feel.
Can any one show me how they have done it?
Suppose you want to display this:
<family>
<dad>whatever</dad>
<mom>whatever</mom>
</family>
Using the
Code:
[sourcecode language="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>
Can any one show me how they have done it?