Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » WebService/XML/JSON/SOAP/SOA  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:10 minutes in XML??? [Re:floater]
irisjacky



CJSDN高级会员


发贴: 70
积分: 70
于 2003-01-07 11:01 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
The following websites and tutorials are part of the ones I get into XML . I can't remeber all because I have read too much material about this. I just try my best to recall.

1.www.xml.com (run by publishers O'Reilly) is an excellent source of articles on all topics XML.
2. http://www-106.ibm.com/developerworks/xml/library/x-xslt5.html This will be useful when you begin writing XSLT stylesheets
3.James Clark explains XML Namespaces. http://www.jclark.com/xml/xmlns.htm
4. http://www.zvon.org/ is an excellent tutorial website for XML begginner
5. http://www.w3schools.com/ is another terrific resource let begginner to experience web technology including XML
6. Attached please find some slides from a very good australian xml technology company.

From my point of view, I prefer xml schema to DTD. First of all, DTD is not a rich enough language to specify all XML applications. Furthermore,DTD uses a non-XML syntax( needs different tools to process). On the contrary, XML Schema languages is a XML based languages, which does provide all of the capabilities of DTD and more. XML schema also maintain and extend the idea of document validity . However, it doesn't mean DTD is dead. Someone still argue that xml schema is more complex than DTD. You may need to decide which technology to use due to your customer's needs. Actually, the construction of some may component in webservices including UDDI, WSDL, SOAP are using the idea of xml schema.
In adddition, I think it is important to point out some new technology like RELAXNG which provides more powerful xml processing. Here is a interesting article talking about comparison between xml schema and relaxng
http://www.xml.com/pub/a/2002/01/23/relaxng.html

Regard to XSLT, as I suggest in other post, it does provide you a very powerful presentation transformation template, which normally used together with Servlet processing. Here I list some brief advantage of XSLT.
1. XSLT can be used to separate data, program, logic and presentation
2. XML and XSLT can be developed independently of servlet code
3.Modularity of presentation improves maintenance
4.Can target multiple client devices via different stylesheets
The only weakness I can see is that it adds layer of abstraction and extra step, slower runtime performance.
If you want to know more, I do recommend you read the book called <<java and xslt>> which give you a beautiful idea of XSLT processing and how to integrate it with J2EE. I don't know whether FTP contain it or not because I don't have the access to FTP. If not, I can upload one ebook which cost a lot bucks to buy one from O'reilly.Smile

Another interesting thing about xml is that xml technology provide the normal function of database rather than presentation logic only.
XML is self-describing, portable and has rich expressiveness to represent any tree or graph structure.
elementary storage (XML documents)
schemas (DTD.s, XML Schema)
query languages (XQuery, XPath)
programming interfaces (SAX, DOM, JDOM
All of these are DB features, aren't they?
Of course, xml is not a complete DB. it doesn't provide transation management and so on. I don't want to mention anymore in the case that all of you may be expert in DB.

In the beginning ,floater talking about what are the steps to go from db to html? It is really up to how you store the xml data into DB. There are many methodology available now. I just point out one to make you have some taste. You can store xml as string (Character Large Object). Store each top level element as a string field of a tuple in a database. Use a separate relation for each top-level element type. Store values of subelements/attributes as extra indexes
Benefits:
Can store any XML data even without DTD as long as there are many top-level elements in a document, strings are small compared to full document, allowing faster access to individual elements.
Drawback: Need to parse strings to access values inside the elements; parsing is slow.

There you go! I just briefly go through the interesting piont of xml technology I can remeber now. Hope it helps you a bit. I do think XML is a terrific technology and provide us much much much more than most people normally think. That's why SUN, IBM, MICROSOFT.... treat it as a big thing.

Finally, whatever background you have or how intelligent you are, it is totally booshit to learn a technology in 10 minutes or even so called "14 days".

s_Comp_Soc_3hour.pdf (481.75k)




关于Jute Forum的长期发展给官方的建议

话题树型展开
人气 标题 作者 字数 发贴时间
18285 10 minutes in XML??? floater 558 2002-12-17 11:03
16890 Re:10 minutes in XML??? wishmaster 462 2002-12-17 15:47
17084 Re:10 minutes in XML??? floater 1956 2002-12-18 00:42
16623 Re:10 minutes in XML??? wishmaster 3044 2002-12-19 15:02
17566 Re:10 minutes in XML??? floater 534 2002-12-20 02:55
16588 Re:10 minutes in XML??? wishmaster 117 2003-01-07 11:53
16865 Re:10 minutes in XML??? jackycct 866 2003-02-14 15:32
16717 Re:10 minutes in XML??? wishmaster 596 2002-12-17 17:11
16639 Re:10 minutes in XML??? wishmaster 0 2002-12-17 17:18
16605 Re:10 minutes in XML??? wishmaster 0 2002-12-17 17:23
16623 O'Reilly - XML In Nutshell 2nd Edition Uploaded wishmaster 91 2002-12-17 17:26
17207 look here coder 384 2002-12-18 16:14
17010 Re:look here floater 628 2002-12-19 00:12
16764 Re:look here wishmaster 506 2002-12-19 15:10
17077 my option coder 142 2002-12-19 11:15
17362 Re:my option floater 592 2002-12-20 02:27
17268 xsql info coder 634 2002-12-20 10:03
16998 Re:xsql info wishmaster 918 2002-12-21 16:38
17063 Re:10 minutes in XML??? floater 41 2002-12-21 00:02
16745 Re:10 minutes in XML??? irisjacky 4475 2003-01-07 11:01
17679 Re:10 minutes in XML??? floater 704 2003-01-07 12:39
16662 Re:10 minutes in XML??? wishmaster 615 2003-01-07 13:08
17286 Re:10 minutes in XML??? floater 339 2003-01-08 12:48

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923