Use of Greater Than Symbol in XML

praveenjayapal picture praveenjayapal · Dec 1, 2008 · Viewed 111.2k times · Source

I had created the xml document with xml version="1.0".

In that document I need to use the greater than symbol > and less than symbol <.

How should I include those symbols? It's not working.

&gt; and &lt; are not working for me.

Is there any special encoder for this?

Answer

Greg picture Greg · Dec 1, 2008

You need the Character Entity References

< = &lt;

> = &gt;