If I write
in a javadoc, it does not appear, because tags have special functions on formatting texts.
How can I show this chars in a
Considering XML is actual code, I believe XML snippets in Javadoc are better suited for the {@code A<B>C} tag rather than the {@literal A<B>C} tag.
The {@code } tag uses a fixed-width font which makes its content standout as actual code.
Just surround it with {@code}
like this:
{@code <xmlElement>}