File tree Expand file tree Collapse file tree
src/it/lift/src/test/scala/demo/helloworld Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020
2121 <properties >
2222 <scala .major.version>2.12</scala .major.version>
23- <scala .minor.version>16 </scala .minor.version>
23+ <scala .minor.version>17 </scala .minor.version>
2424 <scala .version>${scala.major.version} .${scala.minor.version} </scala .version>
25- <scalatest .version>3.2.12 </scalatest .version>
25+ <scalatest .version>3.2.14 </scalatest .version>
2626 <scala .maven.plugin.version>4.3.0</scala .maven.plugin.version>
2727
2828 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
Original file line number Diff line number Diff line change @@ -43,9 +43,14 @@ class AppTest extends AnyFunSuite {
4343
4444 if (file.isFile && handledXml(file.getName)) {
4545 try {
46- XML .loadFile(file)
46+ val f = javax.xml.parsers.SAXParserFactory .newInstance()
47+ f.setFeature(" http://apache.org/xml/features/disallow-doctype-decl" , false )
48+ val p = f.newSAXParser()
49+ XML .withSAXParser(p).loadFile(file)
4750 } catch {
48- case e : _root_.org.xml.sax.SAXParseException => failed = file :: failed
51+ case e : _root_.org.xml.sax.SAXParseException =>
52+ e.printStackTrace()
53+ failed = file :: failed
4954 }
5055 }
5156 if (file.isFile && handledXHtml(file.getName)) {
You can’t perform that action at this time.
0 commit comments