View Single Post
  #1 (permalink)  
Old 04-13-2012, 09:21 AM
Pidi
Guest
 
Posts: n/a
Default Doclet and special character

I'm using the doclet API
(http://docs.oracle.com/javase/1.4.2/...avadoc/doclet/)
to create an xml file from my java source code.

I have to print a string like "Set<Float>" in the xml.

If I do: String s = "Set<Float>", in the xml file results: "Set".
If I do: String s = "Set&lt;Float&gt;", in the xml file results:
"Set&amp;lt;Float&amp;gt;"

How could I escape the characted '<' or '&'??

Thank you so much
Reply With Quote