中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档 | 网通镜像
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 程序开发 > 编程语言 > Java > Java与XML
The XML Mambo @ JDJ
作者:未知 时间:2005-08-10 19:02 出处:Java频道 责编:chinaitpower
              摘要:The XML Mambo @ JDJ
Every so often I read something that makes me scratch my head and wonder. Most recently this phenomenon occurred when I read an editorial concerning Java and XML in a Web development magazine. The author wrote that he thought the concept of XML was easy to understand in terms of its usefulness, while he was puzzled over the reason for Enterprise JavaBeans. I sat back and said to myself, Is it me, or do people who get into programming by designing Web sites always get it backwards? Not to malign the author, who did a good job of explaining both technologies, but I've been working with EJB for a year, and it seems like a pretty clear concept to me. What I can't seem to get is the importance of XML.

As I understand it, XML is a language used to provide meta data as well as data - information about the structure and content of data in a format that any XML-aware application can interpret meaningfully, in addition to the data itself. For example, someone might write a definition of a recipe (the meta data, known as Data Type Definition or DTD), and then other cooks could publish their recipes using that definition in such a way that all pages or programs written to work with one person's recipes could work with another person's recipes.

I get this. I can see where this can make the building of Web applications easier, although how much easier I'm not sure. With XML, we'll probably be able to add data type checking to pages, and do some other operations that we couldn't do on the pure content of HTML. What I don't see is how much this buys the industry. First of all, in order for content to be useful to more than just a single company, a standard DTD needs to be created. There are bodies out there in just about every major industry defining these data types. But what if your needs require something different from the standard? How do you reconcile your DTD with theirs? It can be done, but why?

Second, I don't see how much use this will be in programming; about all I can see is field binding and some additional database features. Nice, but why is XML the next killer app? It's just a language like HTML, which was pretty useless in and of itself until the graphic browsers were invented. The browser, the interpreter or user of HTML, was really the killer app.

Probably the big use for XML will be in e-commerce. This is a likely spot, because e-commerce is all about the exchange of structured information, e.g., invoices, transactions, registrations and things like that. And it doesn't seem like a bad way to do things. By standardizing the language for describing the data, it makes it easier for disparate applications, or even disparate companies, to communicate.

I see XML as an enabler for future technology in the same way that the mouse was an enabler. The mouse became a standard input device for just about every computer. XML stands positioned to do the same for data on every computer. But the real killer apps are the programs that will use XML. I don't see XML as changing the way I program, or the way you type in data on the screen.

Now as for EJB, I can see the purpose for that. But then, I got into Web development from the programming side. So maybe I've got it backwards. Let me know.

关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有