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 <
You need the Character Entity References
< = <
> = >
You can try to use CDATA to put all your symbols that don't work.
An example of something that will work in XML:
<![CDATA[
function matchwo(a,b) {
if (a < b && a < 0) {
return 1;
} else {
return 0;
}
}
]]>
And of course you can use <
and >
.
Use >
and <
for 'greater-than' and 'less-than' respectively
CDATA is a better general solution.