How to note xml?

I am noting a lot of XML and obsidian does not show it in preview. It takes XML tags like special characters. How to solve it so that <> and /> won’t be hidden anymore

You could use code blocks.

Use code blocks:

image

And if you want colored XML, you can install the ‘Editor Syntax Highlight’ plugin