我正在尝试使用XMLStarlet删除空的XML条目。//*[not(./*) and (not(./text()) or normalize-space(.与XMLStarlet配合不起作用:
xmlstarlet ed -d '//*[not(./*) and (not(./text()) or normalize-space(.
我一直试图在R中使用xmstarlet,而不是在bash中运行我的xmlstarlet脚本,然后将其输送到R,但我尝试过的一切都没有奏效。我甚至不确定这是否可能。我试过这个:仅bash中的命令就能工作,但是当我尝试这样做时,我会得到以下错误:Error: unexpected symbol in "shell(cmd=(xmlstarlet sel"
我不太确定是否应该使用syste