【发布时间】:2021-11-23 12:39:42
【问题描述】:
我尝试从 xml 中删除 attribute 和 child node 一次,例如:
<xml>
<node attribute="name">
<child>name</child>
</node>
</xml>
达到预期的结果
<xml>
<node>
</node>
</xml>
取决于子价值。
有可能吗?
【问题讨论】:
标签: xml xpath command-line xml-parsing xmlstarlet