avatar
why do u use XML?# XML - WWW明日之星
a*e
1
I simply do not understand why everyone is crazy about XML.
1. XML is just a format for describing nested data structure in plain text.
To describe nested data strcture is better than plain 2D table, but why
use stupid tagged format like HTML? Does anybody out there hate the open
close tag and wierd < and &quote; stuff, or just me? There are far
better format than XML in terms of expressiveness and clarity. Really,
how many people think you can read the big mess of XML samples on
avatar
b*e
2
no expert in XML but i have doubts on your claim that XML
only supports String. i thought you can use other data types
too.. integers for example.

【在 a*****e 的大作中提到】
: I simply do not understand why everyone is crazy about XML.
: 1. XML is just a format for describing nested data structure in plain text.
: To describe nested data strcture is better than plain 2D table, but why
: use stupid tagged format like HTML? Does anybody out there hate the open
: close tag and wierd < and &quote; stuff, or just me? There are far
: better format than XML in terms of expressiveness and clarity. Really,
: how many people think you can read the big mess of XML samples on

avatar
b*e
3
i will describe one project of mine where XML was used.. (and also
where i got my very limited knowledge on XML)
we built a telecom order end-to-end solution where many different
packages from multi-vendors are used. the order object contains many
fields some of which are arbitrary (not pre-defined). a java servlet
will take the order.. send it to a session bean, and validate it against
a DTD to make sure the structure and datatype is correct.. and then
the object will be sent along a data-bus t

【在 a*****e 的大作中提到】
: I simply do not understand why everyone is crazy about XML.
: 1. XML is just a format for describing nested data structure in plain text.
: To describe nested data strcture is better than plain 2D table, but why
: use stupid tagged format like HTML? Does anybody out there hate the open
: close tag and wierd < and &quote; stuff, or just me? There are far
: better format than XML in terms of expressiveness and clarity. Really,
: how many people think you can read the big mess of XML samples on

avatar
a*e
4
The thing you mentioned is certainly a use of XML, to describe both
data and data type externally to actual program code. Yes, XML has
the advantage here over traditional flat files because DTD helps to
define the data type, while flat file certainly can not do.
But it does not mean XML has any advantage over other formats that
also incorporate type information when describing data, such as ASN.1
From another angle, you are not regarding a DTD as port of your program.
What is the difference betw

【在 b****e 的大作中提到】
: i will describe one project of mine where XML was used.. (and also
: where i got my very limited knowledge on XML)
: we built a telecom order end-to-end solution where many different
: packages from multi-vendors are used. the order object contains many
: fields some of which are arbitrary (not pre-defined). a java servlet
: will take the order.. send it to a session bean, and validate it against
: a DTD to make sure the structure and datatype is correct.. and then
: the object will be sent along a data-bus t

avatar
g*e
5
Let's talk in a non-tech view.
Well, assemble lang can do everything.
XML may not as good as assemble.
It's just a "potential" standard. If it is a standard someday,
it's good otherwise it's worth or worthless as postscript, edi, pdf,
html....
So it's only a bet. You take it or not.
Java is the same thing. You take it or not?
Well, i'll bet on BOTH. The only reason is I already got
C, C++, Assembe,.... Let's pack these easy stuff into our
toolbox and boost our money bah. Otherwise why a highscho
avatar
v*e
6
MS的XML SCHEMA支持各种类型,不仅仅是STRING.
DTD也许会死菜...

【在 b****e 的大作中提到】
: no expert in XML but i have doubts on your claim that XML
: only supports String. i thought you can use other data types
: too.. integers for example.

avatar
v*e
7
一个最简单的好处是:比如你有一些类似表格的东西要用HTML发布,但
其内容总要变化.如果直接改HTML的TD TR很麻烦.
而改XML文件的内容就很方便,然后在CLIENT端可以简单的用SPAN这样的HTML TAG来动态形
成新的HTML页.
可惜似乎必须是IE5...也许NS6也行...这才是XML目前最大的麻烦
但就目前的情况,如果大家用的CLIENT都如IE5一样支持XML,XML就挺好的,不必
非统一DTD才显大能.两个好处是:
1,容易更新数据
2,CLIENT端能得到结构化的数据,知道这个数据是干吗的.
avatar
w*n
8
Another big reason why we use XML is that you can transfer
formatted data through businesses, esp in B2B, between
servers.

【在 v*******e 的大作中提到】
: 一个最简单的好处是:比如你有一些类似表格的东西要用HTML发布,但
: 其内容总要变化.如果直接改HTML的TD TR很麻烦.
: 而改XML文件的内容就很方便,然后在CLIENT端可以简单的用SPAN这样的HTML TAG来动态形
: 成新的HTML页.
: 可惜似乎必须是IE5...也许NS6也行...这才是XML目前最大的麻烦
: 但就目前的情况,如果大家用的CLIENT都如IE5一样支持XML,XML就挺好的,不必
: 非统一DTD才显大能.两个好处是:
: 1,容易更新数据
: 2,CLIENT端能得到结构化的数据,知道这个数据是干吗的.

avatar
a*e
9
Yes, you can use XML to do it, and XML is meant to do this kind of
data transfer/transformation from one to another. My question is,
is it any better than other format? You can write your own format
to suit you own needs. If you are passing data to your customer.
write it in their preferred format then. How is XML different here?
You still have to use a composer, be it XML composer or other type
of composer..

【在 w******n 的大作中提到】
: Another big reason why we use XML is that you can transfer
: formatted data through businesses, esp in B2B, between
: servers.

avatar
b*e
10
i went thru the posts on this board again.. and i think this is the
best article so far.. let's discuss this more..
recently i've been confronted with one question: why is xml/xsl superior?
are they really omnipotent as they're portrayed right now? how aboutr
using jsp/javabeans? it achives the same thing..
discussion welcomed

【在 a*****e 的大作中提到】
: I simply do not understand why everyone is crazy about XML.
: 1. XML is just a format for describing nested data structure in plain text.
: To describe nested data strcture is better than plain 2D table, but why
: use stupid tagged format like HTML? Does anybody out there hate the open
: close tag and wierd < and &quote; stuff, or just me? There are far
: better format than XML in terms of expressiveness and clarity. Really,
: how many people think you can read the big mess of XML samples on

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。