锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产亚洲精品无码拍拍拍色欲,亚洲精品无码久久久久,亚洲av无码一区二区三区人妖http://m.tkk7.com/luckyrobbie/category/8252.html<font size=-1>JAVA鏄摑鑹茬殑-</font> <!-- Start FastOnlineUsers.com --> <a ><script type="text/javascript" src="http://fastonlineusers.com/on2.php?d=m.tkk7.com/luckyrobbie"></script> online</a><!-- End FastOnlineUsers.com -->zh-cnTue, 27 Feb 2007 15:58:03 GMTTue, 27 Feb 2007 15:58:03 GMT60瀛︿範 xpath 鐨?涓綉绔?/title><link>http://m.tkk7.com/luckyrobbie/archive/2006/03/09/34455.html</link><dc:creator>luckyrobbie</dc:creator><author>luckyrobbie</author><pubDate>Thu, 09 Mar 2006 05:20:00 GMT</pubDate><guid>http://m.tkk7.com/luckyrobbie/archive/2006/03/09/34455.html</guid><wfw:comment>http://m.tkk7.com/luckyrobbie/comments/34455.html</wfw:comment><comments>http://m.tkk7.com/luckyrobbie/archive/2006/03/09/34455.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://m.tkk7.com/luckyrobbie/comments/commentRss/34455.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/luckyrobbie/services/trackbacks/34455.html</trackback:ping><description><![CDATA[<A >http://www.w3schools.com/xpath/default.asp</A><BR><BR><A >http://www.zvon.org/xxl/XPathTutorial/General/examples.html</A><img src ="http://m.tkk7.com/luckyrobbie/aggbug/34455.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/luckyrobbie/" target="_blank">luckyrobbie</a> 2006-03-09 13:20 <a href="http://m.tkk7.com/luckyrobbie/archive/2006/03/09/34455.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>When to use Sax or Dom?http://m.tkk7.com/luckyrobbie/archive/2006/02/22/32021.htmlluckyrobbieluckyrobbieWed, 22 Feb 2006 13:52:00 GMThttp://m.tkk7.com/luckyrobbie/archive/2006/02/22/32021.htmlhttp://m.tkk7.com/luckyrobbie/comments/32021.htmlhttp://m.tkk7.com/luckyrobbie/archive/2006/02/22/32021.html#Feedback0http://m.tkk7.com/luckyrobbie/comments/commentRss/32021.htmlhttp://m.tkk7.com/luckyrobbie/services/trackbacks/32021.html

When to use DOM

If your XML documents contain document data (e.g., Framemaker documents stored in XML format), then DOM is a completely natural fit for your solution. If you are creating some sort of document information management system, then you will probably have to deal with a lot of document data. An example of this is the Datachannel RIO product, which can index and organize information that comes from all kinds of document sources (like Word and Excel files). In this case, DOM is well suited to allow programs access to information stored in these documents.

However, if you are dealing mostly with structured data (the equivalent of serialized Java objects in XML) DOM is not the best choice. That is when SAX might be a better fit.

When to use SAX

If the information stored in your XML documents is machine readable (and generated) data then SAX is the right API for giving your programs access to this information. Machine readable and generated data include things like:

  • Java object properties stored in XML format
  • queries that are formulated using some kind of text based query language (SQL, XQL, OQL)
  • result sets that are generated based on queries (this might include data in relational database tables encoded into XML).

So machine generated data is information that you normally have to create data structures and classes for in Java. A simple example is the address book which contains information about persons, as shown in Figure 1. This address book XML file is not like a word processor document, rather it is a document that contains pure data, which has been encoded into text using XML.

When your data is of this kind, you have to create your own data structures and classes (object models) anyway in order to manage, manipulate and persist this data. SAX allows you to quickly create a handler class which can create instances of your object models based on the data stored in your XML documents. An example is a SAX document handler that reads an XML document that contains my address book and creates an AddressBook class that can be used to access this information. The first SAX tutorial shows you how to do this. The address book XML document contains person elements, which contain name and email elements. My AddressBook object model contains the following classes:

  • AddressBook class, which is a container for Person objects
  • Person class, which is a container for name and email String objects.

So my "SAX address book document handler" is responsible for turning person elements into Person objects, and then storing them all in an AddressBook object. This document handler turns the name and email elements into String objects.

Conclusion

The SAX document handler you write does element to object mapping. If your information is structured in a way that makes it easy to create this mapping you should use the SAX API. On the other hand, if your data is much better represented as a tree then you should use DOM.



luckyrobbie 2006-02-22 21:52 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 疯狂做受xxxx高潮视频免费| 2020国产精品亚洲综合网| 日本在线观看免费高清| 国产又黄又爽又猛的免费视频播放 | 亚洲老熟女五十路老熟女bbw | 亚洲日本va在线视频观看| 三年片在线观看免费观看大全中国| 美女黄网站人色视频免费国产| 久久亚洲精品国产亚洲老地址| 女人被免费视频网站| 亚洲欧美日韩中文二区| 国产精品免费看香蕉| 边摸边吃奶边做爽免费视频网站| 免费在线精品视频| 国产97视频人人做人人爱免费| 亚洲人成人一区二区三区| 久久99精品视免费看| 亚洲手机中文字幕| 永久免费AV无码国产网站| 亚洲欧美第一成人网站7777| 国产成人免费高清在线观看| 一级毛片免费不卡| 久久久久久亚洲精品中文字幕 | 国产精品亚洲二区在线| 亚洲男人av香蕉爽爽爽爽| a毛片在线免费观看| 亚洲欧洲日本国产| 午夜影视在线免费观看| 一级毛片大全免费播放下载 | 七色永久性tv网站免费看| 亚洲白色白色在线播放| 国产成人高清精品免费鸭子| 九九免费观看全部免费视频| 婷婷精品国产亚洲AV麻豆不片 | 黄色视屏在线免费播放| 91精品国产亚洲爽啪在线影院| A级毛片内射免费视频| 免费一级毛suv好看的国产网站| 中文字幕人成人乱码亚洲电影 | 一本无码人妻在中文字幕免费| 狠狠入ady亚洲精品|