如果可能的话,我怎么能以编程方式编辑Emacs Lisp中的xml数据?
我需要做的是以编程方式将新节点添加到xml中的任意位置:
<root>
<child>
</child>
</root>
(xml-add-element xml "hello" (xml-element-by-tagname xml "child"))
<root>
<child>
<hello></hello>
</child>
</root>
Run Code Online (Sandbox Code Playgroud)
编辑:我得到尽可能解析XML成口齿不清结构和编辑它xml.el和dom.el,但现在我需要把口齿不清结构回XML数据.