1. Trang chủ
  2. » Công Nghệ Thông Tin

XML Step by Step- P7 doc

15 241 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Cấu trúc

  • 00000___07be008c8276e95dbbf4cdee2cdf4385

  • 00002___79c277462295ccdeedc24e5b50330987

  • 00003___7e0229f16eefad21c64fe455ba7840d5

  • 00004___a933fe67c82b988d8a19eb1cf4460489

  • 00005___c78cce8114aad80865103a642f927492

  • 00006___05fca2542d7816c3088c08cb5a953c52

  • 00007___dbcd3471236536641cfe07a8b300c340

  • 00008___51a230a8ae343e365423c24fc4c892b8

  • 00011___81cd371e1c1bacf76929df14a6b72ecd

  • 00012___fa71951b85f2335bba3707db9c9945c3

  • 00013___26bf5c8899f363dbe89421db9772700b

  • 00015___5022a336bf7648f50eb2940bafca422e

  • 00016___8ffef2ab3f4bb8896512f1f52c960d61

  • 00018___b1f3d94f696c5e655031dbac60c8b37d

  • 00020___4c4b41b89831554d0ed8dd83097ce467

  • 00021___0c64d3975047800446fafdd265235893

  • 00022___1f3d089ae9c652aad2afe9c4f573bd2d

  • 00023___4740dcd998da64186e5528f819ce220e

  • 00025___b7b672ade2024f358bfd2d179c77558a

  • 00026___92dda05b322aef279ea8e2bb3247ae41

  • 00027___40313eef7c48a42502c35f6245d97598

  • 00029___6a2229da2f7ad2a89c6e7eeb4e1f0d14

  • 00030___7e5507d2755064a6b2e2b4c0b987641b

  • 00031___cf3da0e8f97dd392043e87fc5ae4593f

  • 00032___91eac5195e31cd5a6022cdc6e4b14f6b

  • 00033___33d8ccbeecdd88d993fe65249b0359ee

  • 00035___cdef2c5e5e588e4e137279c64bc71b53

  • 00036___c823951e12c7da285c8187105bd7a971

  • 00038___cdaf368e1d91100316a46597e6567496

  • 00039___cd2505397f0bb2edd28b22f4a484123f

  • 00040___54c8df44e5864ca869920507a5b26105

  • 00041___4611f2737c4a637b71ae06d401d2cd76

  • 00043___d4e4f989d951d35de0382e120b4b4e19

  • 00044___0fa30a5072ae1086425b8696c8142499

  • 00045___d434437e62a47d05906c4e24a2ce79ba

  • 00046___16afb0554435a9be7c6c791195b06c98

  • 00047___cdcd0ebde96c32c015750a023a28744c

  • 00048___1e76a009ede3ffe83276816004f0f59c

  • 00049___21b65988b7ba745715028e7f65b50cbf

  • 00050___7f3b086353629e6a6c304e929afb7209

  • 00051___f60fe2ef5ce81c2be1e01eb4bb3fba9f

  • 00052___0a86962fd629f749e29f8e3002544138

  • 00053___5a97e02eb10b4dc03ea597f8ac6d7ac6

  • 00056___14ab7a7909284fc6401b19d21537d29c

  • 00057___5f6c898cb2ac1ac0ad4b032580c00844

  • 00058___81a6a0b4992bf7f884bb9f59270852e7

  • 00059___188053450dbd26400de2c0fe0e6dd62c

  • 00060___e4190846d17ef81e3826a0871de71ffb

  • 00061___7bd385ff2b8e6cbfc9dcb68777e1561f

  • 00062___6fece48acf4f08b58afa9b4b8ec6e2c7

  • 00063___5d14fdc588d22e2c868a2bdfc4748378

  • 00064___902ff685222620c1dd2b1b92f54dbafb

  • 00065___e10449efde06e242167ac4a82fa281d9

  • 00066___96cce74f24f7883ee805b4f3669e9a05

  • 00067___066cd22e047fce2c5725e693e4616d2c

  • 00068___a38efa9725ce5691c587d6c86693f60c

  • 00069___67c87fa03c6e81ef8e3076a0a556f1bf

  • 00070___be1599b9b2f01d3ef1708601e5305c8b

  • 00071___077aac04b65b4b09bd9eee0cf602d2e7

  • 00073___db91d036847cd284782f8102d0d30226

  • 00075___347552d272eab581240ca12a63f8df8b

  • 00076___c568dc6735bad69e18abf376a59a325f

  • 00077___2e1012290c983657e4f9b410ebc0b64c

  • 00078___20d300bfc29acfe447daeb59c93b30cd

  • 00079___e15f6f912d51a56fe5cb6fd90eea9c96

  • 00080___3c6b864e647fda3991319c851aab5279

  • 00081___fce256505c2cb5384233649dac023d86

  • 00082___5ba9398b3ebff8ff8ca11989892ff915

  • 00083___b4946b94d61aaf72d0838bdf10af5ac8

  • 00085___e32d5b7ce84396a8aa892a5e87b4c93e

  • 00088___c4a89139ee94f4861239e3152005dec0

  • 00089___647ad2be306267d969c4cdd8e6ed6d9e

  • 00090___1c3463392d1f86fb4c763e5866a34c3f

  • 00091___7cbf1cf841d8c2ca6569e79e35408f84

  • 00093___556f32e761c0f178bc1286f34d9426f0

  • 00094___5a26e56a9385672f1b318341cdb43854

  • 00095___5bff626f10cccce7656a8f010f8944ac

  • 00097___563f97a2b51ba65253e353b1a62495a7

  • 00098___164f62b26bbec199f7a49da01ebb83e7

  • 00099___72ae2c75944b66959bf7e02105197df6

  • 00100___0af2e625881ebb172c11a19e248836d6

  • 00101___22afff2dca889c5107eebb853b74b583

  • 00103___75ce2ab24dff7d14181576fffe09395f

  • 00104___5e2dd566428426287b0541f4139b2be8

  • 00106___65cc5d3de5566589cc7e85237cc3df0e

  • 00107___70c944bc69ea188d7975088014b1bb4a

  • 00108___a0b8b732fc5222e4cadf7cc75cadc48d

  • 00109___8faf9c79c01752ff6d219e1fe54eae15

  • 00110___d82bab581409feea270f38e8087e4d82

  • 00112___e348ce0ec89e86b0eeb8199dfa566a76

  • 00113___ff0c0987c8c681c86732aeb2888eaf3f

  • 00114___df5be5ff959daec1e10663d147ec830f

  • 00115___b19b4d04bd50fc968e04f3eae262cc31

  • 00118___bb69e9e1ae026339cbf80695449133c7

  • 00119___93bbfa20b63dbc80a3f034da82c87988

  • 00120___da8b71bd337e6e577b9b5c1fb5b74b82

  • 00121___1e69f8d6e81eaf85980d287b45cf16dd

  • 00122___bc250eac32f66e0f9441ac7a1bf43507

  • 00127___e35f961ce8ecf2aa0a3d12068b66846d

  • 00128___10badc2d67bc077915fe5400d842db0d

  • 00130___e6625092f4c3eb36c495f51cb0356a3a

  • 00131___bac4ff3810c493a3425e2a810e1a0dd7

  • 00132___bd88eae7a16f27c908345c50ac1d540d

  • 00133___bc8dff5811bb593a839c66306096d60f

  • 00134___67bce0e289ba178cb4a048c2e54f0edb

  • 00135___b282dd4a6f6122ad4aa269d281c69cf4

  • 00136___2ea62ab44365c10fcb3dbdccc3291793

  • 00139___ea1a865d89cbcb941c4db58b23c2d239

  • 00140___ffbbe549d9e8051b881a37c3019cff06

  • 00141___9249403aedfb836b3db67b35e3cba673

  • 00142___cdc3bf65af3a82257274d1728ac38a0a

  • 00143___099a9b209a24ac2b2894f61b4f12a995

  • 00148___41edce29bea5e759793932bae1be497c

  • 00149___c8e2f302c10023ead709cfe71ade5f88

  • 00151___1bcdb5f0f4108c507f57027a4aaa3694

  • 00152___343b3bf70462e15969d6748130567061

  • 00153___88ec6879d6b7017928a0669c205d9539

  • 00154___f269ff02f399d0ab531694e2ea878607

  • 00155___b4995d2c742ce1ed07aec54a4b351af9

  • 00157___10ab4d2c516c109f7b8dd82452eb56e4

  • 00158___56fcfd1e500243d2eb7294b55ebc7e3d

  • 00159___69fd564fc4f7a1b8467e73fca68f5c3b

  • 00160___a3c8b4bfa2e04ceea6e67fea45b98732

  • 00161___c0532c1d09179559824cbfdd8bb4305c

  • 00163___be60a612cbc8a4af0dac55435b6559b1

  • 00166___b22e2f700a22e4a7976246f50fbf76dc

  • 00167___3662fbeded10b110273ede7e4dda7c4e

  • 00170___2f656900cd5d1c3ea9442a649aeee38d

  • 00171___09b08c76807f2b9d481a58f62fb20890

  • 00172___0b7080a1efc50b0591e95465b4ab6d5b

  • 00173___3a6a805f5299de537d8bed6a80032353

  • 00174___55a85aebafd14fcd36ba36916923377a

  • 00175___861e711aa07e532c1dae25c365f54453

  • 00176___485e9015fda2a6d59051d4d45c32c356

  • 00177___e445502d14e3b235c04a39f584dad3bf

  • 00178___ab78db8e659840ba832edb399dc05565

  • 00179___13b6e283b2d550763795b5b5eff3cf9e

  • 00180___95d67a797b94e6c8e9515ed5a8477154

  • 00181___278ac649f2c9884b6a83785cc59332a3

  • 00182___79816ce93b44fec0d0c8e31ab8f5d98c

  • 00183___415bb17412cf276fb8e8c090f6e64221

  • 00185___b12f3171d40c73549ab3da716f9fba73

  • 00186___4bef3f505c859ea4fafe48279e1144e1

  • 00187___82f888122936d0abc535e5e5eae01086

  • 00188___8a9e12e0051b3d740fdfdc4171729022

  • 00189___1999223eb76c18e674f582355ffd1c6b

  • 00190___52a7a3185f124b42a5b2a388abbfad7f

  • 00191___e0724028af8e44382cc65af5e4e83c81

  • 00192___424855c7bae91e006257f447bf912d1d

  • 00193___eae1ca623c962ef3a24785f350c04831

  • 00194___ac917ffbf721e0cf6feade65b3d88016

  • 00195___adcccd6a5ddeaacd60cde370689f2631

  • 00196___969f2ef9fd044c3c92bcc0f520e46157

  • 00198___c726c212ff1f2daebaf90d38f3b123f3

  • 00200___058a456418db59176ac64ef5cb59ced7

  • 00201___9df977eefb392537e9e77e6f395217a3

  • 00202___1c7e5dc61948599fdb78f13e57dc7452

  • 00203___cd2db706fd545f9f3cd20e3889e0e0e8

  • 00204___6f0553ed708412fbe360c1da1265d3e1

  • 00205___a7d068028f4e7a43c041973600e55183

  • 00206___cc19cdc94fbf80f7f506f8a32ef3f55d

  • 00207___dadea393f2dd53b921208f0150e85294

  • 00208___ea451dee11ee27f91a647f0ea6975dae

  • 00209___0ea9fa9d661961ebc510b18a8346a1c1

  • 00210___f6b6b16f33e4ab9f9253648964ce7c67

  • 00211___d3c5e33d080bd117ab88a6bf09eb1852

  • 00213___c18c4b62ff81772c0c35e399b9328ad5

  • 00214___06c52ec32a3110a176e8d792ffeb7675

  • 00215___25932ce2d4015e0e480ae0560bab16e2

  • 00216___1ee33e4de73cfb6c9fa63a3ad31b7be2

  • 00217___73b30a475252bbb2ce3ff238264df8e0

  • 00218___91f6d5a5a49059917da2c7e0bcc1ea11

  • 00220___44ae4e29e414c63ae6aa184440d8c689

  • 00221___a9a49e3921ce92d59d6c2b9dd4501596

  • 00222___02184fd9198c23ab7dd9c79cdc0fb211

  • 00223___34c60b48b00a3e18f659bafcb2f790c3

  • 00225___4afb0b9b30e178c55e8ca9be0291e7f9

  • 00226___652de5e57cc95c1847165c4dca7d1f6e

  • 00228___92ba36ece6899bae718fda64c3f7e305

  • 00229___aef34bbf6160ca0d6d1a7835e061b071

  • 00231___5654a23d8c2935cf83aeb3f6a3440415

  • 00232___dd940f82909b5212e1eafd80020c7979

  • 00233___b376ca4006b3c1c75ef903974d0bb6af

  • 00234___015b4701da5e948fc2d482d02a779584

  • 00235___d450c77a98fcf9795c6ab3005bb37ed2

  • 00236___f901a072b2c930d72e9e088ca0cf8187

  • 00237___a2fd3e5ac7b1072e82466570c8c54980

  • 00239___e54307556308812bb4e650207039b84a

  • 00240___c90b6cea1b8ce0f3f5d3650caf7dbcd6

  • 00242___bff86a23d731387c12f79a56a1090053

  • 00243___d44959c7951507e403d999536445fda4

  • 00244___2e7ee1bf216445b8e415f321fb8458d9

  • 00245___e3f5693c2dfaf8604e83edeb007f1e2c

  • 00247___87bae98867a49af25bf88f1bfe5d7b90

  • 00249___b0ac62e90be2ed0352940ea249b99559

  • 00250___09cf2d2b1022c10520918f71efd879b5

  • 00251___b59f858bb6b9cf962b3a5fbf0334fc55

  • 00252___3ed554aefb794d5a3a23e97739338970

  • 00255___79e0ff5c00f363885cf7f091f9afc844

  • 00256___8316c6e708288bdd24be9f29bdedfbdc

  • 00258___5d8b3072b45528ab3cfc6db9a07e64ba

  • 00260___267a1179046e90e811d28bf31a5725c0

  • 00261___00e8367ba74425d4a138fd1a8d0e20bd

  • 00262___717625a339e8d150763833f7e0585972

  • 00265___c6cba3266be4c472f9d6badb73d0ec82

  • 00266___5ab4a479413b590c42e9acd288a73770

  • 00267___19330eb7483232f34be10d411765eeaf

  • 00268___716a6b416b72a29bf36ae2ba6e7db5e2

  • 00269___799c86fddcb5e580b2c238e9de78aafe

  • 00270___d1c7196a52e32634f48809abc10a0f9d

  • 00271___f8f23945b19482c7ce1e237bb32b8f74

  • 00272___96c799638e8a25105cfef8e04d5ccecc

  • 00273___dbc4a0da526b9e4b79e70065313a3fd0

  • 00274___77ff27e1847eb5f8f7329281bff9d457

  • 00275___2f72fd02267769bf802460c98516c14b

  • 00276___0c21da9d7298629d225afc2fe01fbe5e

  • 00277___d99eddbd82b9937d53ff8edb51a8cc26

  • 00278___bcc6558d088faf98c0b8fc2164fed0ca

  • 00279___0828cf73371b6ba694e81e385e993aa1

  • 00281___1b9c5459e3a545e3fccb7697888b7eb3

  • 00282___7a2bd6d95f151864f06b9a613911bbcf

  • 00283___dfea613e8838563179c53eb9c77a30cb

  • 00284___58acafe74bf0a3fc1a508b087ec260f6

  • 00285___f89267ac195e2b7bc336caea6b01f5ff

  • 00286___694db58d4adb29b9161a7d94df2ce438

  • 00287___36ddb288b8fdf36887762235c92ae938

  • 00288___ed84cad9f97847cc4972adbd5e8f8ace

  • 00289___20c29e3f7c92494f418717040fc430b3

  • 00290___c9beaa71b619bca4bb69abeba836f523

  • 00291___2319b549f4d4e0ee2cb5c29775a34ca4

  • 00293___6af1c478d769f1c69f5e94b301f08082

  • 00294___c423dd63d5f033c9fa61bfd0eb4dce8f

  • 00298___15bfc076ef89454a414bcea447b30266

  • 00300___acd58012d735edc1ad183da7ab6fb54a

  • 00302___049753a5f15bcfdeb95cd307fe6f5802

  • 00303___116bfd91d85eb72b12dea5f5835ff9a2

  • 00304___f7f994e33698b6a3a7e77b5249f007d7

  • 00306___7ce0f95cb0c128047ea2d3377b468d7c

  • 00309___2581eed3898e38b2a504528bcbafa770

  • 00311___b2418b27be5c048316364ff59a198ae4

  • 00312___4104ae36382544a0a54770a6a8ba188a

  • 00313___4a043f11d258c02a4a38d6af47e07d6f

  • 00315___725baf2cef7e134c35a355b59f99de4d

  • 00317___4af53b911ae122ea34d167fdd7389206

  • 00318___a75c3783a958205adb44e5c5f9ee235c

  • 00319___b722c031367d3cbe1f55b5b786624928

  • 00321___dccbf53b15c0964ad0bde8ab9d2468fd

  • 00322___ab143829a0e5c0036c61501bbe89d520

  • 00324___b7474a238dfe9df066461b18d8d4de19

  • 00325___035cdfeeec684fe77cf33e6fae673771

  • 00326___1847af4f4d874c59eafcd8ea44a913fb

  • 00328___d946731ec26a9c595c4a11080f978eea

  • 00329___eb6f64f76d565d0cf2903a6ee805a760

  • 00331___10f2f585fb597110c63ffb0e28cb3c5b

  • 00332___4e72b0396c6679cd24787de3483253c6

  • 00333___f2eed76ad99ae969a3824c768fe9bbab

  • 00334___a117a2909bdfe45c0b06880e666ea2fc

  • 00335___4d6e40773dbcffbebdbb78f94cabf727

  • 00337___ebe86a4d886d354dce1431e5109210c8

  • 00338___5704ea3efb556698bd9fbf0966b3d348

  • 00339___11703aa064fc67841994281e1c0416ce

  • 00340___e2df09b31d1f080c295b2cd5fd54396a

  • 00342___00b96d195ef4c4911580606ad86d6815

  • 00343___d7ecee356836737969ff3990c36a400a

  • 00344___8e424597bbea182cc52b4c104fa78123

  • 00346___21c75cf4b32a0e54726a762d144bf255

  • 00347___2b8d81e67ee3e54629bed5a8ce757e55

  • 00349___c18b91929f732de1c2c63f03181e6856

  • 00350___39e26d34f1c738446459d5dbca57047e

  • 00352___1fc9d53ecaac9de5c1974bd464ed4053

  • 00353___d25db54768a4e1e807ea4a70a69ad935

  • 00354___c772c13b8704604d21eb1809c464d9d5

  • 00355___4069e0e14dcbfb12136a89ca56762674

  • 00358___884f8f0d522c70d529b568d3b3d92a5a

  • 00359___214078fbcb6af6a11ff24dafc2dc127f

  • 00360___ec07632e0c8a4aa0dfdc0b20d209ee82

  • 00361___7efde7975cdffda32e3477fffa565a2f

  • 00362___e76707a58b58b65ab1de1b8ffba2cea6

  • 00363___1201702125875a0e6cbf081e01ad8bf9

  • 00364___5b1c0580e3e9935a833c054aedc6221e

  • 00365___37b23b60aa5d060e6d8296c97a040dbe

  • 00366___452f653a321cfd5f50d6c8417b566e6f

  • 00367___f4b3ad294ab15ad791c60754a5c127bb

  • 00368___042eeab0d402da7003a0813291d35f98

  • 00369___d2a64720101ae9069cb78cc0b5405682

  • 00371___55f2af2434cef5c34caab7498a8c33ee

  • 00372___c4d2c718364d747392f18394d03fd0a9

  • 00374___55a5beb8c769f38ca1a7fa08f2a95e68

  • 00375___f663925d35b2b70fbf099a68c1a954cd

  • 00376___5d5a5b268aa32b64b15de757e9c7fd33

  • 00377___d1fa03f577c9436b77d33828313d11a5

  • 00379___cde01d14000deec4ed84cbcdb7f348fe

  • 00380___1fab3bdd8edfb31a2929278fb927740a

  • 00382___db0c5c0ae6fb59dbf0ec349316cac6f0

  • 00383___a3038694b59423f13f9f9027f8a97cf9

  • 00384___1b4b2ea5af214fdf2139cb1ae800be18

  • 00385___c25f1adb79469f582f495552d5fa6c48

  • 00386___e520a3a5827e55e031a606a657695908

  • 00387___8e88ee9140d3338e546c21bdfdfe90ab

  • 00389___915bf098deb376df48afac8a193cb0e7

  • 00391___03dcd813a558fec4b1226201eb506158

  • 00392___1e666d96278bb8a8edec1b7bd5dfa166

  • 00393___b18a8024d17689128b6f5a9a65f65b2d

  • 00394___2638670369fede57c5cf62f7bc09e14f

  • 00395___dc01d4b6566ab544bb64cddcdcf9a08e

  • 00396___5da5fa8db82e6cf2270b96ddd8e17834

  • 00397___223b43beec98891465d45b0178b0526b

  • 00398___b2fad8f872b8336c501dc836db9c1a61

  • 00399___34942314219dfa5620d6bd300d4b65ae

  • 00400___c70ca6c609c876eb934adf385db4384d

  • 00401___4af448a9e8d4816352e7384184111e99

  • 00403___e3bd1b6b08e3aa49b188fead4702af9e

  • 00404___978f46feeb40de2d01cc934306a9165b

  • 00406___6f6eae08404d02415012d10841fc55b2

  • 00407___0f9b374b5464aaf464826276d0eb2baf

  • 00408___6b4a7c592f2b5712f7fa0738003b7d4a

  • 00409___9e25fe2c468849932809d6ea88b372e9

  • 00410___2dd71990c1c3a77a3d2d85a93e6695bf

  • 00411___f3f6f7ee280af69eb70c5c8308500283

  • 00413___3edaba1af49d2a0c0abea12bad3cbc95

  • 00414___61e8b7045f940f4a04768113baea2573

  • 00416___a1a6a46c13892038d69e5227a77b3b14

  • 00418___7257c5abf3cf0b8d070c8162abeef635

  • 00419___f86220701282163a0f67695c54e44017

  • 00421___29feec1407e132b8b502986ba9953524

  • 00422___6a3f4700fc2667168cb3c110f6ede170

  • 00423___52fad83063feb0c7973bfa17841538c5

  • 00424___775fa343657870bf2486107947785e82

  • 00425___cd82ba030cf959a9b6cb9d500c680080

  • 00426___59098c2e10d63b662f9ffbdf9f7d0f18

  • 00427___bbe1fda848a775cda5e19353c1e83070

  • 00429___8ce448347adcb0e47bd595d9d76669b6

  • 00432___2d4bc846a67b2a45bd8eea7cdb23552e

  • 00433___e67839db35a9f56dab50e52adc35a29f

  • 00434___f4181f45abf82b4eb2b14cd9566b3462

  • 00435___e0e614a102d0946a076f0e7a09aa875c

  • 00436___9e5ac822665842f4c968d9f4a5fd95cd

  • 00437___bbdc54e9043a35ce197f8abe941c43e2

  • 00438___5a49c79d5b7e544ea7c11730c35029f5

  • 00439___01608872ec699f2904757877837161d4

  • 00441___d013642784387732242fed0e0892763c

  • 00442___dfab6ce47d2a8540243453ffe5d5bd7e

  • 00443___9679954b2158e055618a703b5370c7f4

  • 00444___0d53fbbea67fd239b3ef048ebeb0f450

  • 00446___be2467014ac66b40a2e7c1e500618498

  • 00447___0bfe546e35382280e0125712302ff6df

  • 00449___f1f47da1489f958b6405d994ee59ef50

  • 00450___0b0b9f358ae24c07df16b9657d7383a7

  • 00453___3b67f1f0a20705f5f760e9df0cd647a0

  • 00454___db1b731bfa3c82dd9d6284381e918efc

  • 00457___6ceef90c1eee582d8c45e66c92b0d348

  • 00459___c7c981eba189d95c3b5c57a6fda617eb

  • 00460___90173351901b4748a21bac8a2886e70a

  • 00462___d65b06fd99ccec095ba47ae0111771c3

  • 00464___8a74cec85565c06773c65e2a2feffbc2

  • 00465___28a091d23a08d3664862cfb53df66736

  • 00466___0c7862a313108d47ea0933110421b806

  • 00467___240dfc50cea7bd7bd438dadd257113e8

  • 00469___f3ceb52a7105819f3e10e5999f1c93ee

  • 00470___3e441a79251a2faac92a5c07eec13d45

  • 00471___b39b65a2542b4567293b81cdb6f892e2

  • 00472___ff5d0304cc95f39dbb1be97bc57c8d56

  • 00473___515d67638db74a5642dbda5ad8e1c745

  • 00474___c3c7e52159c95107841f013c86381194

  • 00475___cb96fef195df39ee533ae87311bc7329

  • 00478___1ad8fc0e58f3220d193af3ef0bc2d85a

  • 00479___45192961759393c2bf76e4f22c6acb17

  • 00480___db886977b15a0758353c77c4ea8c516a

  • 00483___c3b201ad0dd3eff955666cd3268d467a

  • 00484___4d0508d0f0265e7d6432b4b6824cc59c

  • 00486___460fbbf0aba55150b7ec7f994e5f9322

  • 00487___4a7d7f603ae9f1df1fba84be94df809c

  • 00489___2c2a4110a7a829b0848798d2ebfa5d66

  • 00490___15d2028e5381d3dc396857fae5392c2d

  • 00492___d527b1c148d94d14d7629ebd57ffbcbb

  • 00493___ed94851b9fa31692279c7d13bdddc5ce

  • 00494___f43d4276833ab17750b74bd8ce7e675e

  • 00495___5ca9808c7e819f2891b6feef4cc8f5b9

  • 00496___b39be075af3880ea8974508e82f1c584

  • 00497___598fa7230fddb5dc5059e255a645fa80

  • 00498___bbcad0082b13fc77246a7279d5314151

  • 00499___5f4717f1f117394cca463bbf6408f13f

  • 00500___58a9ef2b191e3f4abf06c4748b791ca2

  • 00501___75ef49730b339bdccb8b29a6ce9271a8

  • 00502___2153affe811880228962f92108fbb9e0

  • 00503___4c08b81825c8c2eeed9e8edf2452a788

  • 00505___07d06e9ecc28cf2822c026563f9c56ec

  • 00508___b499f5d5ebbbfda5b129870f1a271ff8

  • 00509___c53d4b770da765d5870fa22afdd86ebd

Nội dung

Chapter 5 Creating Valid XML Documents Using Document Type Definitions 93 5 Document Type Definitions The Advantages of Making an XML Document Valid Creating a valid XML document might seem to be a lot of unnecessary bother: You must first fully define the document’s content and structure in a DTD or XML schema and then create the document itself, following all the DTD or schema specifications. It might seem much easier to just immediately add what- ever elements and attributes you need, as you did in the examples of well- formed documents in previous chapters. If, however, you want to make sure that your document conforms to a specific structure or set of standards, providing a DTD or XML schema that describes the structure or standards allows an XML processor to check whether your document is in conformance. In other words, a DTD or XML schema provides a standard blueprint to the processor so that in checking the validity of the docu- ment, it can enforce the desired structure and guarantee that your document meets the required standards. If any part of the document doesn’t conform to the DTD or XML schema specification, the processor can display an error mes- sage so that you can edit the document and make it conform. Making an XML document valid also fosters consistency within that document. For example, a DTD or XML schema can force you to always use the same ele- ment type for describing a given piece of information (for instance, to always enter a book title using a TITLE element rather than a NAME element); it can ensure that you always assign a designated value to an attribute (for instance, hardcover rather than hardback); and it can catch misspellings or typos in ele- ment or attribute names (for instance, typing PHILUM rather than PHYLUM for an element name). Making XML documents valid is especially useful for ensuring uniformity among a group of similar documents. In fact, the XML standard defines a DTD as “a grammar for a class of documents.” Consider, for example, a Web publish- ing company that needs all its editors to create XML documents that conform to a common structure. Creating a single DTD or XML schema and using it for all documents can ensure that these documents uniformly comply with the required structure, and that editors don’t add arbitrary new elements, place information in the wrong order, assign the wrong data types to attributes, and so on. Of course, the document must be run through a processor that checks its validity. Including a DTD or XML schema and checking validity is especially important if the documents are going to be processed by custom software (such as a Web page script) that expects a particular document content and structure. If all users of the software use a common appropriate DTD or XML schema for their XML 94 XML Step by Step documents, and if the documents are checked for validity, the users can be sure that their documents will be recognized by the processing software. For ex- ample, if a group of mathematicians are creating mathematical documents that will be displayed using a particular program, they could all include in their documents a common DTD that defines the required structure, elements, at- tributes, and other features. In fact, most of the “real-world” XML applications listed at the end of Chapter 1, such as MathML, consist of a standard DTD or XML schema that all users of the application use with their XML documents, so that checking the documents for validity ensures that they conform to the application’s structure and will be recognized by any software designed for that application. note The Microsoft Internet Explorer processor will check a document for validity only if the document contains a document type declaration and you open the docu- ment through an HTML Web page (using the techniques you’ll learn in Chap- ters 10 and 11), or if you use an XML schema as explained in Chapter 11. If you open an XML document—one with or without a style sheet—directly in Internet Explorer (as you have done so far in this book and will do in Chapters 8, 9, and 12), the processor will check the entire document—including any document type declaration it contains—for well-formedness and will display a fatal error message for any infraction it encounters. However, the Internet Explorer processor will not check the document for validity, even if it contains a document type declaration. To test a document with a DTD or XML schema for validity and to see messages for any well-formedness or validity errors the document contains, you can use one of the validity checking scripts (contained in HTML Web pages) that are given in “Checking an XML Document for Validity” on page 396. (These scripts are also provided on the companion CD.) You might want to read the instruc- tions in that section now so that you can begin checking the validity of the XML documents you create. Chapter 5 Creating Valid XML Documents Using Document Type Definitions 95 5 Document Type Definitions Adding the Document Type Declaration A document type declaration is a block of XML markup that you add to the prolog of a valid XML document. It can go anywhere within the prolog—out- side of other markup—following the XML declaration. (Recall that if you in- clude the XML declaration, it must be at the very beginning of the document.) Prolog Document element Document type declaration can go here or here A document type declaration defines the content and structure of the document. If you open a document without a document type declaration (or XML schema) in Internet Explorer, the Internet Explorer processor will merely check that the document is well-formed. If, however, you open a document with a document type declaration in Internet Explorer, the processor will, under certain circum- stances, check the document for validity as well as for well-formedness, and your document must therefore conform to all declarations within the document type declaration. (See the note at the end of the previous section for a descrip- tion of the circumstances under which Internet Explorer checks for validity.) You won’t, for example, be able to include any elements or attributes in the document that you haven’t declared in the document type declaration. And ev- ery element and attribute that you do include must match the specifications (such as the allowable content of an element or the permissible type of an at- tribute value) expressed in the corresponding declaration. 98 XML Step by Step Well-Formedness and Validity Constraints Well-formedness constraints are a set of rules given in the XML specifica- tion that you must follow—in addition to the rules specified in the formal XML grammar—to create a well-formed document. Because an XML document must be well-formed, any violation of a well-formedness con- straint or any other failure to achieve well-formedness is considered a fa- tal error. When the XML processor encounters a fatal error, it must stop normal processing of the document and not attempt to recover. Validity constraints are a further set of rules in the XML specification that you must follow if you’ve chosen to create a valid document by defining a DTD. (They don’t apply if you’ve chosen to create a valid document using an XML schema.) Because validity is optional for an XML document, a violation of a validity constraint is considered only an error, as opposed to a fatal error. When a validating XML processor (that is, one that checks documents for validity) encounters an error, it can simply report the problem and attempt to recover from it. Validity constraints consist of specific rules for creating a proper document type declaration with its DTD, and for creating a document that conforms to the specifications within your DTD. Declaring Element Types In a valid XML document created using a DTD, you must explicitly declare the type of every element that you use in the document in an element type declara- tion within the DTD. An element type declaration indicates the name of the ele- ment type and the allowable content of the element (often specifying the order in which child elements can occur). Taken together, the element type declarations in the DTD map out the entire content and logical structure of the document. That is, the element type declarations indicate the element types that the docu- ment contains, the order of the elements, and the contents of these elements. The Form of an Element Type Declaration An element type declaration has the following general form: <!ELEMENT Name contentspec> Chapter 5 Creating Valid XML Documents Using Document Type Definitions 99 5 Document Type Definitions Here, Name is the name of the element type being declared. (To review the rules for legal element names, see “The Anatomy of an Element” on page 53.) And contentspec is the content specification, which defines what the element can con- tain. The next section describes the different types of content specifications you can use. The following is a declaration of an element type named TITLE, which is per- mitted to contain only character data (no child elements would be allowed): <!ELEMENT TITLE (#PCDATA)> And here’s a declaration for an element type named GENERAL, which can con- tain any type of content: <!ELEMENT GENERAL ANY> As a final example, here’s a complete XML document with two element types. The declaration of the COLLECTION element type indicates that it can contain one or more CD elements, and the declaration of the CD element type specifies that it can contain only character data. Notice that the document conforms to these declarations and is therefore valid: <?xml version=”1.0"?> <!DOCTYPE COLLECTION [ <!ELEMENT COLLECTION (CD)+> <!ELEMENT CD (#PCDATA)> <! You can also insert a comment in a DTD. > ] > <COLLECTION> <CD>Mozart Violin Concertos 1, 2, and 3</CD> <CD>Telemann Trumpet Concertos</CD> <CD>Handel Concerti Grossi Op. 3</CD> </COLLECTION> note You can declare a particular element type only once in a given document. For general information on redeclaring items in the DTD, see the sidebar “Redeclarations in a DTD” on page 148. 100 XML Step by Step The Element’s Content Specification You can specify the content of an element—that is, fill in the contentspec part of the element type declaration—in four different ways: ■ EMPTY content. You use the EMPTY keyword to indicate that the element must be empty—that is, that it cannot have content. Here’s an example: <!ELEMENT IMAGE EMPTY> The following would be valid IMAGE elements you could enter into your document: <IMAGE></IMAGE> <IMAGE /> ■ ANY content. You use the ANY keyword to indicate that the element can have any legal content. That is, an element of this type can contain zero or more child elements of any declared type, in any order or number of repetitions, with or without interspersed character data. This is the most lax content specification, and creates an element type without content constraints. Here’s an example of a declaration: <!ELEMENT MISC ANY> ■ Element content (also known as children content). With this type of content specification, the element can contain child elements of the indicated types, but can’t directly contain character data. I’ll de- scribe this option in the next section. ■ Mixed content. With this type of content specification, the element can contain any quantity of character data. Also, if one or more child element types are specified in the declaration, the character data can be interspersed with any number of these child elements, in any order. I’ll describe this option later in this chapter. Specifying Element Content If an element has element content, it can directly contain only the specified child elements. The element cannot contain character data, except for white space characters used to separate the child elements and enhance readability (for ex- ample, you can display each child element on a separate line and indent them using space or tab characters). As always, the processor must pass the white space characters on to the application, but the application will typically ignore Chapter 5 Creating Valid XML Documents Using Document Type Definitions 101 5 Document Type Definitions them. (For more details, and to learn about an exception, see the sidebar “White Space in Elements” on page 56.) Consider the following example XML document, which describes a single book: <?xml version=”1.0"?> <!DOCTYPE BOOK [ <!ELEMENT BOOK (TITLE, AUTHOR)> <!ELEMENT TITLE (#PCDATA)> <!ELEMENT AUTHOR (#PCDATA)> ] > <BOOK> <TITLE>The Scarlet Letter</TITLE> <AUTHOR>Nathaniel Hawthorne</AUTHOR> </BOOK> In this document, the BOOK element type is declared to have element content. The (TITLE, AUTHOR) following the element name in the declaration is known as the content model. A content model indicates the allowed types of child ele- ments and their order. In this example, the content model indicates that a BOOK element must have exactly one TITLE child element followed by exactly one AUTHOR child element. A content model can have either of the following two basic forms: ■ Sequence. The sequence form of content model indicates that the ele- ment must contain a specific sequence of child element types. You separate the names of the child element types with commas. For ex- ample, the following DTD indicates that a MOUNTAIN document element must have one NAME child element, followed by one HEIGHT child element, followed by one STATE child element: <!DOCTYPE MOUNTAIN [ <!ELEMENT MOUNTAIN (NAME, HEIGHT, STATE)> <!ELEMENT NAME (#PCDATA)> <!ELEMENT HEIGHT (#PCDATA)> <!ELEMENT STATE (#PCDATA)> ] > 102 XML Step by Step Hence, the following document element would be valid: <MOUNTAIN> <NAME>Wheeler</NAME> <HEIGHT>13161</HEIGHT> <STATE>New Mexico</STATE> </MOUNTAIN> The following document element, however, would be invalid because the order of the child element types isn’t as declared: <MOUNTAIN> <! Invalid element! > <STATE>New Mexico</STATE> <NAME>Wheeler</NAME> <HEIGHT>13161</HEIGHT> </MOUNTAIN> Omitting a child element type or including the same child element type more than once would also be invalid. As you can see, this is a very rigid form of declaration. ■ Choice. The choice form of content model indicates that the ele- ment can have any one of a series of possible child element types, which are separated using | characters. For example, the following DTD specifies that a FILM element can contain one STAR child ele- ment, or one NARRATOR child element, or one INSTRUCTOR child element: <!DOCTYPE FILM [ <!ELEMENT FILM (STAR | NARRATOR | INSTRUCTOR)> <!ELEMENT STAR (#PCDATA)> <!ELEMENT NARRATOR (#PCDATA)> <!ELEMENT INSTRUCTOR (#PCDATA)> ] > Hence, the following document element would be valid: <FILM> <STAR>Robert Redford</STAR> </FILM> Chapter 5 Creating Valid XML Documents Using Document Type Definitions 107 5 Document Type Definitions <!ELEMENT TITLE (#PCDATA | SUBTITLE)*> <!ELEMENT SUBTITLE (#PCDATA)> The following are valid TITLE elements, conforming to this declaration: <TITLE>Moby-Dick <SUBTITLE>Or, The Whale</SUBTITLE></TITLE> <TITLE><SUBTITLE>Or, The Whale</SUBTITLE> Moby-Dick</TITLE> <TITLE>Moby-Dick</TITLE> <TITLE> <SUBTITLE>Or, The Whale</SUBTITLE> <SUBTITLE>Another Subtitle</SUBTITLE> </TITLE> <TITLE></TITLE> Declaring Attributes In a valid XML document, you must also explicitly declare all attributes that you intend to use with the document’s elements. You define all the attributes as- sociated with a particular element by using a type of DTD markup declaration known as an attribute-list declaration. This declaration does the following: ■ It defines the names of the attributes associated with the element. In a valid document, you can include in an element start-tag only those attributes defined for that element. ■ It specifies the data type of each attribute. ■ It specifies for each attribute whether that attribute is required. If the attribute isn’t required, the attribute-list declaration also indicates what the processor should do if the attribute is omitted. (The decla- ration might, for example, provide a default attribute value that the processor will pass to the application.) notenote notenote note You can declare elements and attributes in any order in a DTD. For example, you can declare the attribute-list specification for a particular element before you declare that element. 108 XML Step by Step The Form of an Attribute-List Declaration An attribute-list declaration has the following general form: <!ATTLIST Name AttDefs> Here, Name is the type name of the element associated with the attribute or at- tributes. AttDefs is a series of one or more attribute definitions, each of which defines one attribute. (The order of the attribute definitions in the attribute-list declaration isn’t significant. You can always include the attribute specifications in an element start-tag in any order.) An attribute definition has the following form: Name AttType DefaultDecl Here, Name is the name of the attribute. (To review the rules for legal attribute names, see “Rules for Creating Attributes” on page 63.) AttType is the attribute type, which is the kind of value that can be assigned to the attribute. (I’ll de- scribe the attribute type in the next section.) And DefaultDecl is the default dec- laration, which indicates whether the attribute is required and provides other information. (I’ll describe the default declaration later in this chapter.) Say, for example, that you’ve declared an element type named FILM like this: <!ELEMENT FILM (TITLE, (STAR | NARRATOR | INSTRUCTOR))> Here’s an example of an attribute-list declaration that declares two attributes— named Class and Year—for FILM elements: <!ATTLIST FILM Class CDATA “fictional” Year CDATA #REQUIRED> Here are the different parts of this declaration: Second attribute definition Default declaration Attribute type Attribute name Attribute name Attribute type Default declaration First attribute definitionName of associated element An attribute-list declaration You can assign to the Class attribute any legal quoted string (the CDATA key- word); if you omit the attribute from a particular element, it will automatically be assigned the default value fictional. You can assign to the Year attribute any legal quoted string; this attribute, however, must be assigned a value in every FILM element (the #REQUIRED keyword), and it therefore doesn’t have a default value. [...]... attribute as an enumerated type, like this: Here’s a complete XML document that shows the use of the Class attribute: < ?xml version=”1.0"?> Electric Coffee Grinder XML Documents Using Document Type Definitions 111 ] > Here’s a complete list of the keywords you can... typically one storing non -XML data I’ll discuss these entities in Chapter 6 For example, in the DTD you might declare an element named IMAGE to represent a graphic image and an ENTITY type attribute named Source to indicate the source of the graphic data, like this: Chapter 5 Creating Valid XML Documents Using Document Type Definitions... underscore (_) followed by zero or more letters, digits, periods (.), hyphens (-), or underscores However, the XML specification states that ID attribute values beginning with the letters xml (in any combination of uppercase or lowercase letters) are “reserved for standardization.” Although Internet Explorer doesn’t enforce this restriction, it’s better not to begin names with xml to avoid future problems...110 XML Step by Step Name of associated element Attribute definition An attribute-list declaration Default declaration Attribute type Attribute name You can specify the attribute type in three different ways: I... followed by a list of name tokens separated with | characters, followed by a close parenthesis Recall that a name token is a name that consists of one or more letters, digits, periods (.), hyphens (-), or underscores (_), and that can also contain a single colon (:) except in the first character position For example, if you wanted to restrict the values of the Class attribute to fictional, documentary,... described in “Rules for Legal Attribute Values” on page 65 In addition, the value must conform to the particular constraint that you specify in the attribute definition by using an appropriate keyword For example, in the following XML document, the StockCode attribute is defined as a tokenized type using the ID keyword (ID is only one of the keywords you can use to declare a tokenized type.) This keyword... INVENTORY document given above note #REQUIRED and #IMPLIED are the two forms of default declaration in which you don’t specify a default value for the attribute It doesn’t make sense to give a default value to an ID type attribute, since the attribute must have a unique value in each attribute specification I IDREF The attribute value must match the value of some ID type attribute in an element within the document . expects a particular document content and structure. If all users of the software use a common appropriate DTD or XML schema for their XML 94 XML Step by Step documents, and if the documents are checked. Chapter 5 Creating Valid XML Documents Using Document Type Definitions 93 5 Document Type Definitions The Advantages of Making an XML Document Valid Creating a valid XML document might seem to. validity of the XML documents you create. Chapter 5 Creating Valid XML Documents Using Document Type Definitions 95 5 Document Type Definitions Adding the Document Type Declaration A document type

Ngày đăng: 03/07/2014, 07:20