写入XML文件客户端 [英] Write to XML file client side

查看:120
本文介绍了写入XML文件客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先这可能吗?!


我一直在使用XML来处理各种各样的事情,如果我有点好的话,这将是非常有用的可以设法写入没有

服务器端工作的XML文件。这样做的原因是简单的;我在当地的一个b $ b理事会(英国)工作,因此我无法访问任何服务器端。

我已阅读各种网站和我使用ASP或PHP来查看大部分文章

。我认为*这可以在客户端使用一些

组合的JavaScript / VBScript / ADO / DOM,但是我对这一切相对较新,所以我'几乎没有真正了解的方式,我几乎要去我想要的地方

。我们即将获得一个新的ECM

(Rhythmyx),所以服务器端的东西可能会有所改善(Oracle Web

Builder也很糟糕*和*打击),但事情不要快速移动

这里。


我们使用IE,并且对其他任何东西都有很大阻力,所以MS

具体是好的。此外,我是一个脑力很小的熊,而且很大的话让我烦恼,所以一些简单的例子会非常感激!

Firstly is this possible?!

I''ve been playing around with XML for various things, and it would be
very helpful if I could manage to write to an XML file with no
server-side work. The reason for this is simple; I work for a local
council (UK), and thus I don''t have access to anything server-side.
I''ve read around various sites and most of the articles I have looked
at use ASP or PHP to do this. I *think* this is possible using some
combination of JavaScript/VBScript/ADO/DOM on the client side but I am
relatively new to all this, so I''ve almost go to where I want to be
without really knowing the way. We are about to get a new ECM
(Rhythmyx), so things may improve on the server side (Oracle Web
Builder both sucks *and* blows), but things don''t move very quickly
here.

We use IE, and there is much resistance to anything else, so MS
specific is fine. Also, I am a bear of very little brain and large
words bother me, so some simple examples would be much appreciated!

推荐答案




隐居猴子写道:


reclusive monkey wrote:
首先这可能吗?!
我们使用IE,并且对其他任何东西都有很大的抵抗力,所以MS具体就好了。此外,我是一个脑力很小的大熊和大字的熊,所以一些简单的例子会非常感激!
Firstly is this possible?! We use IE, and there is much resistance to anything else, so MS
specific is fine. Also, I am a bear of very little brain and large
words bother me, so some simple examples would be much appreciated!




IE / Win有一个基于XML的用户数据行为:

< http://msdn.microsoft.com/library/default.asp? url = / workshop / author / persistence / overview.asp>

-


Martin Honnen
http://javaScript.FAQTs.com/


感谢Martin的链接,我已经读完了这个和它的相似之处

我读过的其他一切;它的迷幻暗示我可以做我想做的事情,但是我没有给我任何具体的例子。我最近的

就在这里;

http://www.topxml.com/xml/guides/dev...ersist_xml.asp


现在第一个部分内容很好,我在Excel中使用了一点VBA,所以我可以使用
来处理记录集。但接下来的例子继续引用服务器

的ASP,正如我所提到的那样对我没有好处。它还说

,当你将XML解压缩到记录集中时,你只能保存它。如果它保持不变,那么它就会保存它(当然听起来好多了)。我可以将
简单地加载到记录集中,在网页中显示,

进行编辑,追加/删除记录,然后保存生成的记录集

到一个新的XML文件?至少如果我知道这是可能的,我可以保持

修补,直到我得到一些有用的东西,然后弄清楚如何将新数据恢复到原始状态。

Thanks for the link Martin, I''ve read through this and its like
everything else I have read; it vaguley suggests I can do what I want
to do, but doesn''t give me any concrete examples I can use. The closest
I have come is here;

http://www.topxml.com/xml/guides/dev...ersist_xml.asp

Now the first part of this is fine, I use a little VBA in Excel, so I
can handle recordsets. But then the example goes on to refer to server
side ASP, which as I have mentioned is no good for me. It also says
that when you unpack the XML into the recordset, you can only save it
if it remains unchanged (fat lot of good that sounds then). Can I
simply load an XML file into a recordset, display it in a web page,
make edits, append/delete records, then save the resulting recordset
into a new XML file? At least if I know this is possible I can keep
tinkering away until I get something that works and then work out how
to get the new data back into the original.




reclusive monkey写道:


reclusive monkey wrote:
谢谢链接马丁,我已经读过这篇文章了,它就像我读过的其他内容一样;它说我可以做我想做的事情,但是没有给我任何具体的例子我可以使用。
Thanks for the link Martin, I''ve read through this and its like
everything else I have read; it vaguley suggests I can do what I want
to do, but doesn''t give me any concrete examples I can use.




如果页面加载了在任何HTTP服务器的浏览器中都可以写任何东西

到浏览器运行的本地文件系统然后浏览器有了b $ ba大安全漏洞因此你必须寻找像cookies一样的东西或者在IE浏览器的情况下用户数据行为,浏览器允许你以可控的方式在客户端上存储

的东西。

至于示例,请按照MSDN上的链接进行操作示例使用

持久性,持久性如何 用XML保存内容

-


Martin Honnen
http://JavaScript.FAQTs.com/


这篇关于写入XML文件客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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