@@ -56,7 +56,7 @@ public String getEntry(ConceptEntry entry, ConceptType type) {
5656 // lemma
5757 sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
5858 + XMLConstants .LEMMA + ">" );
59- sb .append (StringEscapeUtils .escapeXml (entry .getWord ()));
59+ sb .append (StringEscapeUtils .escapeXml10 (entry .getWord ()));
6060 sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
6161 + XMLConstants .LEMMA + ">" );
6262
@@ -70,53 +70,53 @@ public String getEntry(ConceptEntry entry, ConceptType type) {
7070 // description
7171 sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
7272 + XMLConstants .DESCRIPTION + ">" );
73- sb .append (StringEscapeUtils .escapeXml (entry .getDescription ()));
73+ sb .append (StringEscapeUtils .escapeXml10 (entry .getDescription ()));
7474 sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
7575 + XMLConstants .DESCRIPTION + ">" );
7676
7777 // concept list
7878 sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
7979 + XMLConstants .CONCEPT_LIST + ">" );
80- sb .append (StringEscapeUtils .escapeXml (entry .getConceptList ()));
80+ sb .append (StringEscapeUtils .escapeXml10 (entry .getConceptList ()));
8181 sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
8282 + XMLConstants .CONCEPT_LIST + ">" );
8383
8484 // creator id
8585 sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
8686 + XMLConstants .CREATOR_ID + ">" );
87- sb .append (StringEscapeUtils .escapeXml (entry .getCreatorId () != null ? entry
87+ sb .append (StringEscapeUtils .escapeXml10 (entry .getCreatorId () != null ? entry
8888 .getCreatorId ().trim () : "" ));
8989 sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
9090 + XMLConstants .CREATOR_ID + ">" );
9191
9292 // equal to
9393 sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
9494 + XMLConstants .EQUAL_TO + ">" );
95- sb .append (StringEscapeUtils .escapeXml (entry .getEqualTo () != null ? entry
95+ sb .append (StringEscapeUtils .escapeXml10 (entry .getEqualTo () != null ? entry
9696 .getEqualTo ().trim () : "" ));
9797 sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
9898 + XMLConstants .EQUAL_TO + ">" );
9999
100100 // modified by
101101 sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
102102 + XMLConstants .MODIFIED_BY + ">" );
103- sb .append (StringEscapeUtils .escapeXml (entry .getModified () != null ? entry
103+ sb .append (StringEscapeUtils .escapeXml10 (entry .getModified () != null ? entry
104104 .getModified ().trim () : "" ));
105105 sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
106106 + XMLConstants .MODIFIED_BY + ">" );
107107
108108 // similar to
109109 sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
110110 + XMLConstants .SIMILAR_TO + ">" );
111- sb .append (StringEscapeUtils .escapeXml (entry .getSimilarTo () != null ? entry
111+ sb .append (StringEscapeUtils .escapeXml10 (entry .getSimilarTo () != null ? entry
112112 .getSimilarTo ().trim () : "" ));
113113 sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
114114 + XMLConstants .SIMILAR_TO + ">" );
115115
116116 // synonym ids
117117 sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
118118 + XMLConstants .SYNONYM_IDS + ">" );
119- sb .append (StringEscapeUtils .escapeXml (entry .getSynonymIds () != null ? entry
119+ sb .append (StringEscapeUtils .escapeXml10 (entry .getSynonymIds () != null ? entry
120120 .getSynonymIds ().trim () : "" ));
121121 sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
122122 + XMLConstants .SYNONYM_IDS + ">" );
@@ -132,7 +132,7 @@ public String getEntry(ConceptEntry entry, ConceptType type) {
132132 }
133133 sb .append (">" );
134134 if (type != null )
135- sb .append (StringEscapeUtils .escapeXml (type .getTypeName ()));
135+ sb .append (StringEscapeUtils .escapeXml10 (type .getTypeName ()));
136136 sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
137137 + XMLConstants .TYPE + ">" );
138138
@@ -146,7 +146,7 @@ public String getEntry(ConceptEntry entry, ConceptType type) {
146146 // wordnet id
147147 sb .append ("<" + XMLConstants .NAMESPACE_PREFIX + ":"
148148 + XMLConstants .WORDNET_ID + ">" );
149- sb .append (StringEscapeUtils .escapeXml (entry .getWordnetId () != null ? entry
149+ sb .append (StringEscapeUtils .escapeXml10 (entry .getWordnetId () != null ? entry
150150 .getWordnetId ().trim () : "" ));
151151 sb .append ("</" + XMLConstants .NAMESPACE_PREFIX + ":"
152152 + XMLConstants .WORDNET_ID + ">" );
0 commit comments