Java - 我使用 Java DocumentBuilderFactory 形成了这个当前的 XML。
<server>
<excludeList>
<exclude>.ear</exclude>
<exclude>.war</exclude>
<exclude>.tar</exclude>
</excludeList>
我希望使用 Java DocumentBuilderFactory 将以下新节点添加到我的新 XML 中:
<server>
<excludeList>
<exclude>.ear</exclude>
<exclude>.war</exclude>
<exclude>.tar</exclude>
<exclude>.txt</exclude>
<exclude>apps\third_party\activator</exclude>
<exclude>apps\temp</exclude>
<exclude>apps\xender</exclude>
</excludeList>