Cov ntaub ntawv nrog rau .xsd extension feem ntau ua rau tsis meej pem cov neeg siv. Qhov no yog piav qhia los ntawm qhov tseeb tias muaj ob hom ntawm hom ntawv no, uas yog cov lus qhia txawv kiag li ntawm hom. Yog li, tsis txhob chim siab yog tias daim ntawv thov niaj zaus tuaj yeem tsis qhib nws. Kab tias cia li tau txais cov ntaub ntawv ntawm lwm hom. Qhov txawv ntawm XSD cov ntaub ntawv thiab cov kev pabcuam uas lawv tuaj yeem ua tau yog dabtsi, yuav tham txog hauv qab no.
XML Daim Ntawv Schema
XML daim ntawv Schema (XML Schema Definition) yog hom XSD ntau hom. Nws tau raug tan txij li xyoo 2001. Cov ntaub ntawv no muaj ntau hom ntaub ntawv qhia txog XML cov ntaub ntawv - lawv cov qauv, cov ntsiab lus, cov cwj pwm, thiab ntxiv rau. Yog xav qhib ib hom ntaub ntawv no, muaj ntau txoj kev. Thiab piv txwv li, siv qhov simplest piv txwv ntawm hom ntawv no (yuav daim ntawv xaj tswv yim), uas yog muaj los ntawm Microsoft.
Method 1: XML Editors
XML editors yog cov software tsim rau kev qhib XSD cov ntaub ntawv, vim nws yog nrog lawv cov ntaub ntawv tias cov ntaub ntawv ntawm hom no raug tsim. Xav txog qee yam ntawm lawv ntxiv.
XML Notepad
Qhov kev pab cuam no yog ib qho ntawm Microsoft's Notepad cov kev xaiv yeej tsim los ua haujlwm nrog cov ntaub ntawv XML. Raws li, XSD tuaj yeem qhib thiab kho nrog nws.
XML Notepad muab ntau nta tshaj cov kev qhia saum toj no. Ntxiv nrog rau cov ntsiab lus tseem ceeb, nws txiav txim siab txog cov qauv ntawm daim ntawv thiab qhia nws hauv ib daim ntawv yooj yim rau saib thiab kho.
Oxygen XML Editor
Tsis zoo li yav dhau los, qhov software no yog ib qho cuab tam ntau tsim los tsim cov ntawv XML. Tus qauv ntawm XSD cov ntaub ntawv nws nthuav qhia rau hauv daim ntawv ntawm ib lub rooj xim
Qhov kev pab cuam no yog multiplatform, ob qho tib si raws li daim ntawv thov kev sab nraud thiab ua ib lub tswv yim dab noj hnub.
Download Oxygen XML Editor
Koj tuaj yeem qhib XSD cov ntaub ntawv nrog kev pab cuam ntawm ntau cov khoom "hnyav", xws li Microsoft Visual Studio, Kev Tshawb Fawb Studio thiab lwm tus. Tab sis lawv yog cov cuab yeej rau cov tub txawg. Txhim kho lawv tsuas yog rau lub hom phiaj ntawm kev qhib cov ntaub ntawv tsis raug.
Txoj kev 2: Browsers
XSD cov ntaub ntawv yog qhib rau hauv txhua tus browser. Ua li no, koj tuaj yeem siv cov ntsiab lus teb los sis cov ntawv qhia zaub mov "Cov Ntaub Ntawv" (yog tias muaj nyob hauv qhov browser). Los yog koj tuaj yeem npaj txoj kev rau cov ntaub ntawv nyob hauv qhov chaw nyob ntawm tus browser lossis luag ua rau qhov web explorer window.
Qhov no yog li cas peb tus qauv, qhib hauv Google Chrome, zoo li:
Thiab qhov no yog nws, tab sis twb nyob hauv Yandex Browser:
Thiab ntawm no nws yog twb nyob hauv Opera:
Raws li koj tau pom, tsis muaj qhov sib txawv. Nws yog tsim nyog sau cia tias browsers tsuas yog tsim rau saib cov ntaub ntawv ntawm hom no. Koj hloov tsis tau dab tsi hauv lawv.
Method 3: Cov Ntawv Teev Tseg
Vim yog lub simplicity ntawm nws cov qauv, XSD ntaub ntawv yooj yim qhib nrog yuav luag txhua cov ntawv nyeem editor thiab tuaj yeem dawb hloov thiab tau txais kev cawmdim. Cov kev sib txawv dag nyob hauv txoj kev yooj yim ntawm kev saib thiab kho. Lawv tuaj yeem qhib ncaj qha los ntawm cov ntawv nyeem, lossis los ntawm cov ntawv qhia zaub mov uas xaiv qhov kev xaiv "Qhib nrog".
Ntawm no yog qee cov qauv ntawm qhov yuav ua li cas qhov no yuav ua tau siv cov ntawv sib txawv ntawm cov ntawv nyeem:
Notepad
Qhov no yog qhov nyuaj daim ntawv thov cov ntaub ntawv, los ntawm tam sim no tam sim no nyob rau hauv tej version ntawm lub qhov rais. Qhov no yog li cas peb cov qauv, qhib hauv Notepad, zoo li:
Vim yog tsis muaj kev yooj yim, kho cov ntaub ntawv XSD hauv nws yuav tsis yooj yim, tab sis kev paub zoo nrog nws cov ntsiab lus, Notepad yuav haum zoo.
Wordpad
Lwm qhov hloov ntawm lub qhov rais, piv rau Notepad, uas muaj ntau dua nta. Tab sis qhov no tsis cuam tshuam qhov qhib XSD cov ntaub ntawv, vim tias cov editor no kuj tsis muaj kev yooj yim ntxiv rau kev saib thiab kho.
Raws li koj tau pom, nrog rau kev zam ntawm qhov kev pab cuam interface, tsis muaj dab tsi nyob rau hauv cov lus ntawm XSD cov ntaub ntawv, raws li muab piv nrog Notepad, tau hloov.
Notepad ++
Qhov kev pabcuam no yog tib daim ntawv qhia txog Notepad, tabsis muaj ntau yam haujlwm, xws li cov lus qhia hauv lub npe. Li no, XSD ntaub ntawv qhib hauv Notepad ++ zoo li ntau ntau txaus nyiam thanks rau cov syntax highlighting feature. Qhov no ua rau cov txheej txheem kho kom yooj yim dua.
Koj tuaj yeem qhib XSD cov ntaub ntawv sau ntau lo lus, xws li MS Word lossis LibreOffice. Tab sis vim cov khoom software no tsis yog tsim los rau kev kho cov ntaub ntawv zoo li no, lawv yuav tsum tau tso tawm kom pom zoo ib yam li hauv Notepad.
Tus qauv ntawm daim phiaj sib tsoo
Lwm qhov ntawm XSD expansion yog qhov sib txawv ntawm cov ntoo. Li no, nyob rau hauv cov ntaub ntawv no, hom ntaub ntawv no yog ib qho duab. Nyob hauv cov ntaub ntawv no, ntxiv rau cov duab hauv nws tus kheej, kuj tseem muaj xim dab neeg thiab cov lus piav qhia ntxiv rau kev tsim cov paj ntaub. Koj tuaj yeem qhib XSD cov ntaub ntawv hauv tib qho.
Tus Txiav Txim Rau Txoj Kev Liab Stitch yog qhov cuab yeej tseem ceeb rau kev qhib cov qauv paj ntaub, raws li nws tsim los tsim thiab kho lawv. Qhov no yog qhov XSD cov ntaub ntawv qhib rau hauv Txiav Txim Siab zoo li.
Qhov kev zov me nyuam muaj ib qho cuab yeej nplua nuj. Tsis tas li ntawd, nws yuav ua tau yooj yim Russified. Tsis tas li, nws tau faib dawb xwb.
Yog li, cov qauv ntawm XSD cov ntaub ntawv mas yeej yog XML daim ntawv teev tseg. Yog tias nws tsis qhib nrog cov ntawv kho mob, ces peb muaj ib cov ntaub ntawv uas muaj qhov sib txawv ntawm cov ntoo.