Why java's framework and package-managed configuration files are all in xml format, why not use json or yaml?

Why are the configuration files managed by the java framework and the
package all in xml format and
instead of using json or yaml?

< hr >

if any great god knows, give me popular science

Dec.04,2021

JSON is not very suitable for configuration files. Although it is easy to read, it is not very easy to use as a configuration file. It has no namespace and cannot be strictly checked.

SpringBoot has started to use YAML for configuration files, and ElasticSearch also supports YAML.

XML, as the dominant markup language for a time, has naturally become the preferred configuration method for various frameworks.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54f63-45304.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54f63-45304.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?