Node.js实现W3C XML DOM的库? [英] Node.js library implementing W3C XML DOM?

查看:131
本文介绍了Node.js实现W3C XML DOM的库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一些代码来使用标准的W3C DOM API来处理XML文档。它在浏览器环境中运行良好,我想让它在node.js下工作。不幸的是,我没有找到一个工作的node.js库实现标准的W3C DOM API。以下是我尝试过的图书馆:





我可以使用不同的API编写第二个实现来执行相同的功能,但是我宁愿找到一个将暴露这些标准接口的库,以便我可以在两个上下文中使用相同的代码。有没有一个实现W3C DOM API的工作的node.js库?

解决方案

XMLDOM 可能是一个不错的选择,它是一个基于W3C标准的DOMParser和XMLSerializer(DOM Level2 CORE)



祝你好运


I've written some code to manipulate an XML document using standard W3C DOM APIs. It works well in the browser environment, and I'd like to get it to work under node.js. Unfortunately, I have not been able to find a working node.js library implementing standard W3C DOM APIs. Here are the libraries I have tried:

I could write a second implementation, using a different API, to perform the same function, but I'd rather find a library that will expose these standard interfaces, so that I can use the same code in both contexts. Is there a working node.js library that implements the W3C DOM API?

解决方案

XMLDOM might be a good choice, it's a W3C Standard based DOMParser and XMLSerializer (DOM Level2 CORE)

good luck

这篇关于Node.js实现W3C XML DOM的库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆