-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Description
I have xsd that that looks like this sample:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Data">
<xs:complexType>
<xs:sequence>
<xs:element name="Age" type="xs:unsignedByte" />
<xs:element name="Under18" type="xs:boolean" >
<xs:annotation>
<xs:documentation>Resolve age <> 18</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
After generating java code the entity for less-then sign <
is not preserved as escaped entity but replaced with proper character <.
/**
* Resolve age <> 18
*
*/
@XmlElement(name = "Under18")
protected boolean under18;
It leads to invalid HTML. Our project has check for valid JavaDoc and fails on malformed HTML.
I expect that XML entities like &
<
>
'
and "
are preserved in JavaDoc.
Metadata
Metadata
Assignees
Labels
No labels