diff -pruN 1.4.0-1/debian/changelog 1.4.0-1ubuntu1/debian/changelog
--- 1.4.0-1/debian/changelog	2025-08-27 16:30:56.000000000 +0000
+++ 1.4.0-1ubuntu1/debian/changelog	2025-10-26 14:54:16.000000000 +0000
@@ -1,3 +1,9 @@
+r-cran-xml2 (1.4.0-1ubuntu1) resolute; urgency=medium
+
+  * Fix test case for libxml2 2.15.x. Addresses: #1119020.
+
+ -- Matthias Klose <doko@ubuntu.com>  Sun, 26 Oct 2025 15:54:16 +0100
+
 r-cran-xml2 (1.4.0-1) unstable; urgency=medium
 
   * Team upload.
diff -pruN 1.4.0-1/debian/patches/libxml2.15.diff 1.4.0-1ubuntu1/debian/patches/libxml2.15.diff
--- 1.4.0-1/debian/patches/libxml2.15.diff	1970-01-01 00:00:00.000000000 +0000
+++ 1.4.0-1ubuntu1/debian/patches/libxml2.15.diff	2025-10-26 14:54:16.000000000 +0000
@@ -0,0 +1,11 @@
+--- a/tests/testthat/test-xml_write.R
++++ b/tests/testthat/test-xml_write.R
+@@ -126,7 +126,7 @@ test_that("write_html work with html inp
+   })
+   expect_identical(
+     readChar(file, 1000L),
+-    "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">\n<html><head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<title>Foo</title>\n</head></html>\n"
++    "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">\n<html><head>\n<meta charset=\"UTF-8\">\n<title>Foo</title>\n</head></html>\n"
+   )
+ })
+ 
diff -pruN 1.4.0-1/debian/patches/series 1.4.0-1ubuntu1/debian/patches/series
--- 1.4.0-1/debian/patches/series	2025-08-27 16:28:31.000000000 +0000
+++ 1.4.0-1ubuntu1/debian/patches/series	2025-10-26 14:54:16.000000000 +0000
@@ -1 +1,2 @@
 privacy_breach.patch
+libxml2.15.diff
