If I write <xmlElement>
in a javadoc, it does not appear, because tags have special funcions on formatting texts.
How can I show this chars in a javadoc?
If I write <xmlElement>
in a javadoc, it does not appear, because tags have special funcions on formatting texts.
How can I show this chars in a javadoc?
You only need to use the HTML equivalent for one of the angle brackets. The <
can be represented as either <
or <
. Here's a sample taken from real Javadoc:
<pre> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> [...]
This displays as:
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
this works for me so use & l t ; for < and & g t ; for > , without any spaces between, because moment i remove spaces stackoverflow thinks them as < and >