To XML for beginners
Type: XML / Biztalk
宸笉澶氭瘡澶╅兘鏈変汉闂?浠?箞鏄?XML鈥濓紝鈥淴ML 鑳藉仛浠?箞鈥濓紝鈥淴ML 鑳戒笉鑳芥浛鎴戝仛杩欎釜鈥濓紝鈥淴ML 浼氬彇浠d粈涔堚? 绛夌瓑璇稿姝ょ被鐨勯棶棰樸?鐢变簬鏈?繎涓?鏃堕棿绋嶅井瀵?xml 浣跨敤浜嗕竴涓嬶紝鎴戞潵璋堣皥鑷繁鐨勬劅瑙夈?杩欎簺缁忛獙閮藉緢娴呮樉锛屼换浣曚竴涓敤杩?xml 鐨勪汉閮芥湁锛屽苟涓旇浠佽鏅猴紝鍙笉杩囨垜绠楀垰鍒氳蛋杩囪繖娈佃矾锛屽鑷繁涓?紑濮嬬殑鍥版儜锛岃瑙h繕璁板緱娓咃紝鎵?互鎷垮嚭鏉ュ拰澶у鍒嗕韩涓?笅銆?br />
I think the beginner's errors may be approached:
1. XML 鏄笉鏄?HTML 鐨勫彇浠h?
涓嶆槸銆傚啓寰楀ソ鐨?html 搴旇鏄竴涓?well-formed 鐨?xml 鏂囨。锛屽叾浠栨柟闈㈡渶濂戒笉瑕佹妸浠栦滑鏀惧湪涓?釜姘村钩绾夸笂姣旇緝
2. XML is not a replacement for the database
涓嶆槸銆?br />
3. XML is not a replacement of ...
Not.
This conclusion may sound funny: XML is a very, very important thing, but it can not replace anything.浣嗚繖骞朵笉濂囨?锛屾湁浜烘妸瀹冩瘮鍋?ASCII 鏍囧噯锛屼粬浠槸涓?垏涓?垏鐨勫熀纭?紝浣嗗苟娌℃湁锛堜篃涓嶉渶瑕侊級鍙栦唬浠?箞銆?锛堜絾鏄氨濡傚悓 ASCII 鍙栦唬浜嗕竴浜涙病鏈夋垚澶у櫒鐨勫瓧绗﹂泦瀹氫箟锛孹ML 涔熶細鍙栦唬浣犲湪搴旂敤涓嚜宸卞畾涔夌殑涓?簺鏁版嵁浼犺緭瑙勮寖锛屼絾娌℃湁浠?箞鐗瑰埆涓绘祦鐨勪笢瑗裤?锛?br />
Just started learning XML (or do not start school before) when the favorite to ask a question must be: using XML give me any good?
鎴戣寰椾粠鏌愮瑙掑害涓婅锛屼娇鐢?XML 鏈変簺璞′娇鐢?OO 闈㈠悜瀵硅薄锛?br />
- You can use it, you can not have it.
- If your application is very simple, it is not necessarily easy to use, maybe even worse with the results.
- 鍜屽叾浠栧疄闄呬笢瑗挎瘮濡傛暟鎹簱锛孧TS锛學eb Server姣旇捣鏉ワ紝瀹冩洿鍍忔槸涓?釜姒傚康锛屼竴绉嶆柟娉?br />- The larger the project, its room to maneuver larger role in the greater.
- Once upon a real understanding, even if no xml parser, does not prevent you from using this concept, as you can set aside a specific language to use OO.
- ......
Seem more abstract and Mo Puer instead.
閭e氨闅忎究涓句釜渚嬪瓙銆傛瘮濡備綘鏈潵鎯冲湪 bbs 搴旂敤涓殑涓や釜妯″潡涔嬮棿浼犱竴浜涙暟鎹細
- 鍙戣█浜?br />- Password
- Title
- Content
浣跨敤鍥涗釜鍙傛暟鏄笉澶幇瀹炵殑锛屽洜涓轰綘闅忔椂鍙兘瑕佹墿灞曞姛鑳斤紝姣斿鍐嶅姞涓婁釜
- Emoticons
Etc.
Not always add a function, again on the re-definition of the function. So the simplest way is to combine them as a parameter to the function.鍦ㄦ湁 xml 涔嬪墠锛屼綘鍙兘浼氫娇鐢ㄥ垎闅旂锛歴tr = "鍙戣█浜?寮犱笁;瀵嗙爜=**锛涙爣棰?abc锛涘唴瀹?xyz"
鍒?server 閭h竟浣跨敤 dictionary 鎴?collection 鎴?split 绛夌瓑鏂规硶鎶婁粬浠媶寮??锛堝綋鐒跺彲浠ヨ嚜宸卞畾涔夊璞″暒锛岀粨鏋勫暒绛夌瓑锛屼絾澶氭暟鎯呭喌涓嬭繕寰楁槸绾瓧绗︿覆--姣斿鍙︿竴涓ā鍧椾笉鏄嚜宸卞紑鍙戠殑銆傦級
This method of passing the string there are several issues, summarized the two largest areas are:
1. To properly analyze it too much trouble. (Eg, just the title is "The spokesman = Joe Smith;" how to do)
2. Is flat, not hierarchical structure
浣犲彲浠ュ啓浜涘嚱鏁版潵瑙e喅杩欎簺闂锛屾瘮濡傜‘淇濋噷闈㈣偗瀹氭湁鈥滃彂瑷?汉鈥濓紝鈥滃瘑鐮佲?绛夌瓑锛涘啀鍐欎簺鍑芥暟鍋氫竴涓嬪瓧绗﹁浆涔夛紝鍐嶅啓浜涘嚱鏁板埗閫犲嚭灞傛鎬х殑鏁堟灉...
Enough! Zan is it with XML. In my current knowledge in simple and obvious:
- XML is used to transfer data
- XML data with these structures - a tree structure
- Xml with a full set of operation method of this structure
- xml 瑙勮寖锛堟垨鑰呰鐨勫疄闄呯偣锛寈ml parser锛夊府浣犵‘瀹氫綘鍒涘缓鐨勫瓧绗︿覆鏄悎娉曠殑
- Xml specification (or the actual point, xml parser) in a way to verify the legitimacy of
- For the server component to get this string is, you can use xml in the ready-made way to operate it,
杩欏氨鏄?xpath, pattern锛岀被浼间簬 T-SQL 璇彞銆?(But keep in mind is the tree structure of xml)
- XSLT convert xml using xpath on (similar to DTS), which is a special case of the XML into HTML output.
相关链接:
Contact Home Linkist Then The New Tactics: To Provide Professional Exhibition Space
Taobao Changing Faces: Jack Ma Strikes Back
Recommend News Servers
3G2 To MOV
Come Together 3DMeNow! (1)
Catalogs Web Servers
FLV to ZUNE
Thread contact mechanism
DivX to 3GP
News About Project Management
Crack Sphinx
Job on the ROAD a few lessons to remember
J2ME in the divide and rule
FATHER Wang Yongmin Tan Wubi Chinese language programming
Changjiang a9 dual card quad band with tv phone