Polish contribution

See gh-36948
This commit is contained in:
Sam Brannen
2026-06-25 13:23:49 +02:00
parent 1277279527
commit 4074155d76
3 changed files with 24 additions and 2 deletions
@@ -44,7 +44,8 @@ class XmlValidationModeDetectorTests {
"dtdWithTrailingComment.xml",
"dtdWithTrailingCommentAcrossMultipleLines.xml",
"dtdWithCommentOnNextLine.xml",
"dtdWithMultipleComments.xml"
"dtdWithMultipleComments.xml",
"dtdWithDoctypeInMultiLineCommentBody.xml"
})
void dtdDetection(String fileName) throws Exception {
assertValidationMode(fileName, VALIDATION_DTD);
@@ -56,7 +57,8 @@ class XmlValidationModeDetectorTests {
"xsdWithMultipleComments.xml",
"xsdWithDoctypeInComment.xml",
"xsdWithDoctypeInOpenCommentWithAdditionalCommentOnSameLine.xml",
"xsdWithDoctypeInMultiLineCommentBody.xml"
"xsdWithDoctypeInMultiLineCommentBody.xml",
"xsdWithMultipleDoctypesInMultiLineCommentBody.xml"
})
void xsdDetection(String fileName) throws Exception {
assertValidationMode(fileName, VALIDATION_XSD);
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DOCTYPE
-->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "https://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
</beans>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
xxx DOCTYPE xxx
yyy
zzz DOCTYPE zzz
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.springframework.org/schema/beans
https://www.springframework.org/schema/beans/spring-beans.xsd">
</beans>