@@ -56,7 +56,7 @@ public String getEntry(ConceptEntry entry, ConceptType type) {
56
56
// lemma
57
57
sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
58
58
+ XMLConstants .LEMMA + ">" );
59
- sb .append (StringEscapeUtils .escapeXml (entry .getWord ()));
59
+ sb .append (StringEscapeUtils .escapeXml10 (entry .getWord ()));
60
60
sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
61
61
+ XMLConstants .LEMMA + ">" );
62
62
@@ -70,53 +70,53 @@ public String getEntry(ConceptEntry entry, ConceptType type) {
70
70
// description
71
71
sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
72
72
+ XMLConstants .DESCRIPTION + ">" );
73
- sb .append (StringEscapeUtils .escapeXml (entry .getDescription ()));
73
+ sb .append (StringEscapeUtils .escapeXml10 (entry .getDescription ()));
74
74
sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
75
75
+ XMLConstants .DESCRIPTION + ">" );
76
76
77
77
// concept list
78
78
sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
79
79
+ XMLConstants .CONCEPT_LIST + ">" );
80
- sb .append (StringEscapeUtils .escapeXml (entry .getConceptList ()));
80
+ sb .append (StringEscapeUtils .escapeXml10 (entry .getConceptList ()));
81
81
sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
82
82
+ XMLConstants .CONCEPT_LIST + ">" );
83
83
84
84
// creator id
85
85
sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
86
86
+ XMLConstants .CREATOR_ID + ">" );
87
- sb .append (StringEscapeUtils .escapeXml (entry .getCreatorId () != null ? entry
87
+ sb .append (StringEscapeUtils .escapeXml10 (entry .getCreatorId () != null ? entry
88
88
.getCreatorId ().trim () : "" ));
89
89
sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
90
90
+ XMLConstants .CREATOR_ID + ">" );
91
91
92
92
// equal to
93
93
sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
94
94
+ XMLConstants .EQUAL_TO + ">" );
95
- sb .append (StringEscapeUtils .escapeXml (entry .getEqualTo () != null ? entry
95
+ sb .append (StringEscapeUtils .escapeXml10 (entry .getEqualTo () != null ? entry
96
96
.getEqualTo ().trim () : "" ));
97
97
sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
98
98
+ XMLConstants .EQUAL_TO + ">" );
99
99
100
100
// modified by
101
101
sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
102
102
+ XMLConstants .MODIFIED_BY + ">" );
103
- sb .append (StringEscapeUtils .escapeXml (entry .getModified () != null ? entry
103
+ sb .append (StringEscapeUtils .escapeXml10 (entry .getModified () != null ? entry
104
104
.getModified ().trim () : "" ));
105
105
sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
106
106
+ XMLConstants .MODIFIED_BY + ">" );
107
107
108
108
// similar to
109
109
sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
110
110
+ XMLConstants .SIMILAR_TO + ">" );
111
- sb .append (StringEscapeUtils .escapeXml (entry .getSimilarTo () != null ? entry
111
+ sb .append (StringEscapeUtils .escapeXml10 (entry .getSimilarTo () != null ? entry
112
112
.getSimilarTo ().trim () : "" ));
113
113
sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
114
114
+ XMLConstants .SIMILAR_TO + ">" );
115
115
116
116
// synonym ids
117
117
sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
118
118
+ XMLConstants .SYNONYM_IDS + ">" );
119
- sb .append (StringEscapeUtils .escapeXml (entry .getSynonymIds () != null ? entry
119
+ sb .append (StringEscapeUtils .escapeXml10 (entry .getSynonymIds () != null ? entry
120
120
.getSynonymIds ().trim () : "" ));
121
121
sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
122
122
+ XMLConstants .SYNONYM_IDS + ">" );
@@ -132,7 +132,7 @@ public String getEntry(ConceptEntry entry, ConceptType type) {
132
132
}
133
133
sb .append (">" );
134
134
if (type != null )
135
- sb .append (StringEscapeUtils .escapeXml (type .getTypeName ()));
135
+ sb .append (StringEscapeUtils .escapeXml10 (type .getTypeName ()));
136
136
sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
137
137
+ XMLConstants .TYPE + ">" );
138
138
@@ -146,7 +146,7 @@ public String getEntry(ConceptEntry entry, ConceptType type) {
146
146
// wordnet id
147
147
sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
148
148
+ XMLConstants .WORDNET_ID + ">" );
149
- sb .append (StringEscapeUtils .escapeXml (entry .getWordnetId () != null ? entry
149
+ sb .append (StringEscapeUtils .escapeXml10 (entry .getWordnetId () != null ? entry
150
150
.getWordnetId ().trim () : "" ));
151
151
sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
152
152
+ XMLConstants .WORDNET_ID + ">" );
0 commit comments