On Fri, 13 Apr 2012 11:21:13 +0200, Pidi <
la...@mail.com> wrote,
quoted or indirectly quoted someone who said :
>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<Float>", in the xml file results:
>"Set&lt;Float&gt;"
>
>How could I escape the characted '<' or '&'??
Where are these & coming from?
1. doclet processor
2. when you go to print the XML
Have you looked at the generated XML to see if the &s are there?
As a kludge you might conside generating Set{Float} then later
converting.
When you feed your Strings in your custom doclet processor, see if
there are alternate add methods that treat the string with different
degrees of literalness.
see
http://mindprod.com/jgloss/xml.html#AWKWARD
you can also resort to the CDATA sandwich.
--
Roedy Green Canadian Mind Products
http://mindprod.com
When you were a child, if you did your own experiment
to see if it was better to put to cocoa into your cup first
or the hot milk first, then you likely have the programmer gene..