Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<E id="1"> ..... <E id="2"> .... </E> . . . </E>
我想从其父节点中删除 id=2 的完整节点。如何用 Java 做到这一点?提前致谢。
我认为您需要使用实例化 XMLModifier 的副本并调用“remove()”方法。如果您需要更多信息,请告诉我。