使用ASP.Net ajax库进行跨浏览器Xml操作

时间:2022-11-06 19:03:02

I am currently updating a web app that uses ActiveX objects in client side code to manipulate some xml. Of course, this app only works in IE and I need to get it cross browser compatible.

我目前正在更新一个在客户端代码中使用ActiveX对象来操作某些xml的Web应用程序。当然,这个应用程序只适用于IE,我需要让它跨浏览器兼容。

I am looking to get a javascript xml library to handle the cross browser oddities, and was wondering if the ASP.Net ajax library would work. I have looked around a bit, but I haven't been able to any examples of loading a fresh xmldom object up using this. If not, any other good libraries out there I should take a look at?

我希望得到一个javascript xml库来处理跨浏览器的怪异,并想知道ASP.Net ajax库是否可行。我已经环顾了一下,但是我还没有能够使用这个加载一个新的xmldom对象的任何例子。如果没有,那么我还应该看看其他任何好的图书馆吗?

Thanks

2 个解决方案

#1


1  

If you need XPath or (not the xor type of an or) XSL-T, than you may be willing to take a look at Google's AJAXSLT.

如果您需要XPath或(不是x或者XSL-T的类型),那么您可能愿意看看Google的AJAXSLT。

I don't know that ASP.NET Ajax library includes any specific XML functionality.

我不知道ASP.NET Ajax库包含任何特定的XML功能。

#2


1  

Over a year ago I was facing a similar problem. I decided to take the JSON plunge and I've never regretted leaving XML behind. It is an order of magnitude faster and much easier to deal with in JavaScript (and many other languages). Add of the array enhancing powers of something like Prototype and you're cookin'.

一年多以前,我遇到了类似的问题。我决定采取JSON暴跌,我从来没有后悔留下XML。它在JavaScript(以及许多其他语言)中处理速度快了一个数量级并且更容易处理。添加像Prototype这样的数组增强功能,你就可以了。

Sure, there was the one-time pain of converting my data transport from XML to JSON, but it paid for itself rather quickly.

当然,将我的数据传输从XML转换为JSON有一次性的痛苦,但它很快就能收回成本。

#1


1  

If you need XPath or (not the xor type of an or) XSL-T, than you may be willing to take a look at Google's AJAXSLT.

如果您需要XPath或(不是x或者XSL-T的类型),那么您可能愿意看看Google的AJAXSLT。

I don't know that ASP.NET Ajax library includes any specific XML functionality.

我不知道ASP.NET Ajax库包含任何特定的XML功能。

#2


1  

Over a year ago I was facing a similar problem. I decided to take the JSON plunge and I've never regretted leaving XML behind. It is an order of magnitude faster and much easier to deal with in JavaScript (and many other languages). Add of the array enhancing powers of something like Prototype and you're cookin'.

一年多以前,我遇到了类似的问题。我决定采取JSON暴跌,我从来没有后悔留下XML。它在JavaScript(以及许多其他语言)中处理速度快了一个数量级并且更容易处理。添加像Prototype这样的数组增强功能,你就可以了。

Sure, there was the one-time pain of converting my data transport from XML to JSON, but it paid for itself rather quickly.

当然,将我的数据传输从XML转换为JSON有一次性的痛苦,但它很快就能收回成本。