[SPARK-53950][BUILD] Upgrade scala-xml to 2.4.0

### What changes were proposed in this pull request?
The pr aims to upgrade `scala-xml` from `2.3.0` to `2.4.0`

### Why are the changes needed?
The full release notes: https://github.com/scala/scala-xml/releases/tag/v2.4.0

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass Github Actions

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #52659 from LuciferYang/scala-xml-2.4.0.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Kousuke Saruta <sarutak@apache.org>
diff --git a/dev/deps/spark-deps-hadoop-3-hive-2.3 b/dev/deps/spark-deps-hadoop-3-hive-2.3
index a0dd996..72eb2cd 100644
--- a/dev/deps/spark-deps-hadoop-3-hive-2.3
+++ b/dev/deps/spark-deps-hadoop-3-hive-2.3
@@ -269,7 +269,7 @@
 scala-parallel-collections_2.13/1.2.0//scala-parallel-collections_2.13-1.2.0.jar
 scala-parser-combinators_2.13/2.4.0//scala-parser-combinators_2.13-2.4.0.jar
 scala-reflect/2.13.17//scala-reflect-2.13.17.jar
-scala-xml_2.13/2.3.0//scala-xml_2.13-2.3.0.jar
+scala-xml_2.13/2.4.0//scala-xml_2.13-2.4.0.jar
 slf4j-api/2.0.17//slf4j-api-2.0.17.jar
 snakeyaml-engine/2.10//snakeyaml-engine-2.10.jar
 snakeyaml/2.4//snakeyaml-2.4.jar
diff --git a/pom.xml b/pom.xml
index 37eb9dfb..a1dad16 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1174,7 +1174,7 @@
       <dependency>
         <groupId>org.scala-lang.modules</groupId>
         <artifactId>scala-xml_${scala.binary.version}</artifactId>
-        <version>2.3.0</version>
+        <version>2.4.0</version>
       </dependency>
       <dependency>
         <groupId>org.scala-lang</groupId>