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.

Menu