XML /表单与PHP和Java相比如何? [英] How does XML / forms compare with PHP and java ?

查看:88
本文介绍了XML /表单与PHP和Java相比如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对XML表单有点困惑,这类似于web编程

语言如PHP和java?特别是你使用编译器或

特殊服务器来查看这些XML表单页面,你可以用这些编程一个

接口,还是只是一种格式,如果它是什么流行的

系统将它们整合到开发中?

解决方案



vf***@talktalk.net 写道:

我对XML有点困惑表单,这类似于Web编程的语言,如PHP和Java?特别是你使用编译器或
特殊服务器来查看这些XML表单页面,你可以使用这些页面编程
接口,还是只是一种格式,如果它是流行的
系统集成的他们进入开发?




目前尚不清楚你的问题是指什么。

有XForms 1.0,W3C推荐
< http://www.w3.org/TR/xforms/>

引入为

" XForms是一个XML应用程序它代表了Web的下一代

表格。通过将传统的XHTML表单分成三个部分?XForms模型,实例数据和用户界面?它将表示与内容分开,允许重用,提供强类型?减少

到服务器的往返次数,以及提供设备独立性和减少脚本编写的需求。


XForms不是一种独立的文档类型,而是打算将其集成到其他标记语言中,例如XHTML或SVG。


所以XHTML文档的一部分可能是XForms元素和属性,然后支持XForms的
a浏览器将呈现这些表单,用户可以输入数据并将数据提交给服务器,PHP

或Java可以处理它。

-


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



<小时ef =mailto:vf *** @ talktalk.net> vf *** @ talktalk.net 写道:

我对XML表单有点困惑,这是类似于网络编程
PHP和java等语言?




不,完全没有。


可以使用XForms从PHP或Java中,但它不能用于

隔离(用于有用的工作)。它不是一种编程语言,

它是一种定义接口的语言。编程的其他部分比

挂在这些界面上。


如果你必须将XForms与somthing进行比较,那么这是一个有趣的问题

询问它如何适应AJAX。即使这些都不能直接比较,但是他们都在为同一个发展中市场的一部分而战。


< blockquote>所以这些是Web开发的首选方法,对Linux有一个倾斜的




I am a bit confused about XML forms, is this similar to web programming
languages like PHP and java ? In particular do you use a compiler or
special server to view these XML forms pages and can you program an
interface with these or is it just a format, if it is what popular
systems integrate them into the developement ?

解决方案



vf***@talktalk.net wrote:

I am a bit confused about XML forms, is this similar to web programming
languages like PHP and java ? In particular do you use a compiler or
special server to view these XML forms pages and can you program an
interface with these or is it just a format, if it is what popular
systems integrate them into the developement ?



It is not clear what your question refers to.
There is XForms 1.0, a W3C recommendation
<http://www.w3.org/TR/xforms/>
that is introduced as
"XForms is an XML application that represents the next generation of
forms for the Web. By splitting traditional XHTML forms into three
parts?XForms model, instance data, and user interface?it separates
presentation from content, allows reuse, gives strong typing?reducing
the number of round-trips to the server, as well as offering device
independence and a reduced need for scripting.

XForms is not a free-standing document type, but is intended to be
integrated into other markup languages, such as XHTML or SVG."

So part of an XHTML document could be XForms elements and attributes and
a browser supporting XForms would then render those forms, the user
could enter data and that data would be submitted to a server where PHP
or Java could process it.
--

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



vf***@talktalk.net wrote:

I am a bit confused about XML forms, is this similar to web programming
languages like PHP and java ?



No, not at all.

XForms may be used from within PHP or Java, but it can''t be used in
isolation (for useful work). It''s not a programming language as such,
it''s a language for defining interfaces. Other bits of programming than
hang onto these interfaces.

If you must compare XForms to somthing, it''s an interesting question to
ask how it fits in with AJAX. Even these aren''t directly comparable,
but they''re both fighting for a portion of the same developing market.


So out of these what is the preferred method of web development with a
slant towards Linux.


这篇关于XML /表单与PHP和Java相比如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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