diff --git a/.classpath b/.classpath index 9512653..4037c47 100644 --- a/.classpath +++ b/.classpath @@ -2,19 +2,20 @@ - - - - - - - - + + + + + + + + + diff --git a/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs b/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs new file mode 100644 index 0000000..7c8126d --- /dev/null +++ b/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs @@ -0,0 +1,5 @@ +XDOCLETBUILDERACTIVE=true +XDOCLETHOME= +XDOCLETUSEGLOBAL=true +XDOCLETVERSION=1.2.1 +eclipse.preferences.version=1 diff --git a/lib/README b/lib/README index 73953e3..2f5ad2a 100644 --- a/lib/README +++ b/lib/README @@ -1,7 +1,7 @@ Description of used libraries. Standards: -- commons-lang: useful tools (StringUtils...) +- commons-lang: useful tools (StringUtils…) Logging - log4j: log API diff --git a/lib/commons-lang3-3.11-sources.jar b/lib/commons-lang3-3.11-sources.jar new file mode 100644 index 0000000..68cad64 Binary files /dev/null and b/lib/commons-lang3-3.11-sources.jar differ diff --git a/lib/commons-lang3-3.11.jar b/lib/commons-lang3-3.11.jar new file mode 100644 index 0000000..bbaa8a6 Binary files /dev/null and b/lib/commons-lang3-3.11.jar differ diff --git a/lib/commons-lang3-3.7-sources.jar b/lib/commons-lang3-3.7-sources.jar deleted file mode 100644 index a83c661..0000000 Binary files a/lib/commons-lang3-3.7-sources.jar and /dev/null differ diff --git a/lib/commons-lang3-3.7.jar b/lib/commons-lang3-3.7.jar deleted file mode 100644 index f37ded6..0000000 Binary files a/lib/commons-lang3-3.7.jar and /dev/null differ diff --git a/lib/commons-text-1.9-sources.jar b/lib/commons-text-1.9-sources.jar new file mode 100644 index 0000000..a636e92 Binary files /dev/null and b/lib/commons-text-1.9-sources.jar differ diff --git a/lib/commons-text-1.9.jar b/lib/commons-text-1.9.jar new file mode 100644 index 0000000..cc0c690 Binary files /dev/null and b/lib/commons-text-1.9.jar differ diff --git a/lib/devinsy-strings-0.11.0-sources.zip b/lib/devinsy-strings-0.11.0-sources.zip new file mode 100644 index 0000000..eb31276 Binary files /dev/null and b/lib/devinsy-strings-0.11.0-sources.zip differ diff --git a/lib/devinsy-strings-0.11.0.jar b/lib/devinsy-strings-0.11.0.jar new file mode 100644 index 0000000..1926831 Binary files /dev/null and b/lib/devinsy-strings-0.11.0.jar differ diff --git a/lib/devinsy-strings-0.8.2-sources.zip b/lib/devinsy-strings-0.8.2-sources.zip deleted file mode 100644 index 815e0b8..0000000 Binary files a/lib/devinsy-strings-0.8.2-sources.zip and /dev/null differ diff --git a/lib/devinsy-strings-0.8.2.jar b/lib/devinsy-strings-0.8.2.jar deleted file mode 100644 index 1e95075..0000000 Binary files a/lib/devinsy-strings-0.8.2.jar and /dev/null differ diff --git a/src/fr/devinsy/xml/XMLTools.java b/src/fr/devinsy/xml/XMLTools.java index 368c12a..b3cd7ea 100644 --- a/src/fr/devinsy/xml/XMLTools.java +++ b/src/fr/devinsy/xml/XMLTools.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2014,2017-2018 Christian Pierre MOMON + * Copyright (C) 2013-2020 Christian Pierre MOMON * * This file is part of Devinsy-xml. * @@ -35,8 +35,8 @@ import javax.xml.validation.Schema; import javax.xml.validation.SchemaFactory; import javax.xml.validation.Validator; -import org.apache.commons.lang3.StringEscapeUtils; import org.apache.commons.lang3.StringUtils; +import org.apache.commons.text.StringEscapeUtils; import org.xml.sax.InputSource; import org.xml.sax.SAXException; @@ -66,7 +66,7 @@ public class XMLTools } else { - result = StringEscapeUtils.escapeXml(source); + result = StringEscapeUtils.escapeXml10(source); } //