且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用java dom从xml中删除名称空间?

更新时间:2023-12-03 19:24:58

对于元素和属性节点:

Node node = ...;
String name = node.getLocalName();

将给您节点名称的本地部分。

will give you the local part of the node's name.

请参阅 Node.getLocalName()