How to read an XML file with Java?

后端 未结 9 2138
执念已碎
执念已碎 2020-12-03 12:15

I don\'t need to read complex XML files. I just want to read the following configuration file with a simplest XML reader


    loc         


        
9条回答
  •  無奈伤痛
    2020-12-03 12:46

    Since you want to parse config files, I think commons-configuration would be the best solution.

    Commons Configuration provides a generic configuration interface which enables a Java application to read configuration data from a variety of sources (including XML)

提交回复
热议问题