0
我正在使用Apache Commons Configuration來讀取xml文件中的配置。 例如:配置是如何使用apache配置獲取屬性值和標記值libraray
<example>
....
<task id="123">example task1</task>
<task id="456">example task2</task>
....
</example>
我想提取所有example.task我需要在下面的表格
123-> example task1
456-> example task2
如何可以做到這一點的值。
你有閱讀和遵守的文件? https://commons.apache.org/proper/commons-configuration/userguide/howto_xml.html – nhahtdh