gpt4 book ai didi

json - node.js 将 xml 转换为 json 对象并转换回 xml

转载 作者:太空宇宙 更新时间:2023-11-04 01:58:14 24 4
gpt4 key购买 nike

我想使用 node.js 和 angular.js 编辑 xml 数据。将 xml 转换为 json 后,我想做一些更改并将其保存回 xml 文件。它需要保留子元素的顺序并处理特殊字符,例如 "

最佳答案

您可以使用xml-js包。

关于json - node.js 将 xml 转换为 json 对象并转换回 xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47059113/

24 4 0