访问XML数据文件 [英] Accessing an XML data file

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

问题描述

我的任务是创建一个应用程序,该应用程序将从需要从

XML数据中搜索和检索数据的
独立计算机上的CD上运行岛屿。


我能看到的最好的方法就是使用

DHTML / Javascript,因为这需要与浏览器无关。 >
申请。


我遇到的麻烦就是如何实现这个目标。这是

处理这种情况的最佳方法吗?如果是这样我怎么去用Javascript / DHTML来做这个呢?


Thx

-t

I have been tasked to create an app that will be run from a CD on
stand-alone machines that needs to search and retrieve data from an
XML Data Island.

The best approach that I can see to handle this is to use
DHTML/Javascript since this needs to be a browser-independent
application.

The trouble I am running into is on how to accomplish this. Is this
the best approach to handle this situation? If so how would I go about
doing this in Javascript/DHTML?

Thx
-t

推荐答案

2004年5月11日11:33:45 -0700, ** ***@hotmail.com (Todd)写道:
On 11 May 2004 11:33:45 -0700, to*****@hotmail.com (Todd) wrote:
我的任务是创建一个应用程序,该应用程序将从CD上运行 -
需要从XML数据岛搜索和检索数据的单独机器。
I have been tasked to create an app that will be run from a CD on
stand-alone machines that needs to search and retrieve data from an
XML Data Island.




为什么?这似乎是一个非常荒谬的约束,为什么你会假设

XML是解决方案?


XML几乎肯定不是解决方案(很少是,除非

你还不知道在另一端是什么,需要发送

任意复杂的信息系统)


这里适当的解决方案几乎肯定是JSON -
www.json.org


吉姆。

-

comp.lang.javascript常见问题 - http://jibbering.com/faq/



Why? That seems a pretty ridiculous constraint, why have you assumed
XML is the solution?

XML is almost certainly not the solution (it very rarely is, unless
you''ve not got a clue what''s at the other end and need to send
arbitrary complicated infosets)

The appropriate solution here would almost certainly be JSON -
www.json.org

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/


to*****@hotmail.com (托德)写道:
to*****@hotmail.com (Todd) writes:
XML数据岛。
因为这需要与浏览器无关的应用程序。


我不认为XML Data Islands与浏览器无关。事件

术语是微软的发明。我们其余的人只是打电话给我/ b $ b"格式错误的HTML" :)

我遇到的麻烦就是如何实现这个目标。这是处理这种情况的最佳方法吗?如果是这样我将如何在Javascript / DHTML中执行此操作?
an XML Data Island. since this needs to be a browser-independent application.
I don''t think XML Data Islands are browser independent. Event the
terminology is a Microsoft invention. The rest of us just calles i
"malformed HTML" :)
The trouble I am running into is on how to accomplish this. Is this
the best approach to handle this situation? If so how would I go about
doing this in Javascript/DHTML?




您需要解决的*真正*问题是什么?

如果你告诉我们,我们可以告诉他们哪种方法会更好。

/ L

-

Lasse Reichstein尼尔森 - lr*@hotpop.com

DHTML死亡颜色:< URL:http://www.infimum .dk / HTML / rasterTriangleDOM.html>

''没有判断的信仰只会降低精神神圣。''



What is the *real* problem you need to solve?
If you tellus, we migth be able to say which approach would be better.
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
''Faith without judgement merely degrades the spirit divine.''




托德 <到***** @ hotmail.com> schrieb im Newsbeitrag

新闻:a4 ************************** @ posting.google.c om ...

"Todd" <to*****@hotmail.com> schrieb im Newsbeitrag
news:a4**************************@posting.google.c om...
我的任务是创建一个应用程序,该应用程序将从需要从XML数据岛搜索和检索数据的独立计算机上的CD上运行。 br />
我能看到的最好的方法是使用
DHTML / Javascript,因为这需要一个独立于浏览器的应用程序。

我遇到的麻烦在于如何实现这一目标。这是处理这种情况的最佳方法吗?如果是这样,我怎样才能在Javascript / DHTML中用
做这个?

Thx
-t
I have been tasked to create an app that will be run from a CD on
stand-alone machines that needs to search and retrieve data from an
XML Data Island.

The best approach that I can see to handle this is to use
DHTML/Javascript since this needs to be a browser-independent
application.

The trouble I am running into is on how to accomplish this. Is this
the best approach to handle this situation? If so how would I go about doing this in Javascript/DHTML?

Thx
-t




也许这有帮助吗?
http://gazingus.org/html/XML_Parser_in_JavaScript。 html


主要问题是将xml数据文件加载到Var中。我已经有了一些代码,但这并不令人满意。在

Gecko引擎下给出弹出警告,并且似乎无法在Netscape6上运行。不幸的是我

再也找不到了。


HTH,

Gernot




Maybe this helps you?
http://gazingus.org/html/XML_Parser_in_JavaScript.html

The main problem is to load the xml data file into a Var. I''ve had
some code but it''s not really satisfying. Gives popup warnings under
Gecko engine and doesn''t seem to work on Netscape6. Unfortunately I
can''t find it anymore.

HTH,
Gernot



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

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