Tim
Tim

Reputation: 2066

JAXB generate weired html tag

Small question about JAXB auto code generation.

For the comment part, it will generate some schema like following:

<element name="partner_system_priority" type="{http://www.w3.org/2001/XMLSchema}int"/>

I want to know why JAXB dont make > as a &gt?

Br,
Tim

Upvotes: 1

Views: 69

Answers (1)

Ilya
Ilya

Reputation: 29703

This comment is generated for javadoc tool.
So this comment will be a part of HTML page after javadoc generation.
It is enough to replace only first less then (<) symbol with &lt; in HTML report.

Both

&lt;element name="partner_system_priority" 
   type="{http://www.w3.org/2001/XMLSchema}int"/> 

and

&lt;element name="partner_system_priority" 
   type="{http://www.w3.org/2001/XMLSchema}int"/&gt;  

will be interpreted by browser as

<element name="partner_system_priority" 
       type="{http://www.w3.org/2001/XMLSchema}int"/>  

So, no reason to do redundant replacement

Upvotes: 2

Related Questions