Cov txheej txheem:

Koj paub li cas yog XML tsim tau zoo?
Koj paub li cas yog XML tsim tau zoo?

Video: Koj paub li cas yog XML tsim tau zoo?

Video: Koj paub li cas yog XML tsim tau zoo?
Video: Cheb Tsev li no thiaj khwv tau Nyiaj 2024, Kaum ib hlis
Anonim

Cov cai no yog:

  1. A zoo - ua XML daim ntawv yuav tsum muaj cov ntawv kawg sib raug rau tag nrho nws cov cim pib.
  2. Nesting ntawm cov ntsiab lus nyob rau hauv ib leeg XML cov ntaub ntawv yuav tsum tsim nyog.
  3. Nyob rau hauv txhua lub caij ob tus cwj pwm yuav tsum tsis txhob muaj nqi tib yam.
  4. Markup cim yuav tsum tau teev kom raug.

Ib yam li ntawd ib tug yuav nug, koj yuav ua li cas xyuas seb cov ntaub ntawv XML puas tsim tau zoo?

Rau kuaj yog tias ib daim ntawv yog Namespace Zoo - Tsim XML thiab Namespace-valid: Xaiv qhov Xyuas Zoo - Kev tsim kho (Ctrl + Ua haujlwm + W (Command + Shift + W ntawm OS X)) ua los ntawm Validation nco-down ntawv qhia zaub mov ntawm toolbar (los yog Cov Ntaub Ntawv> Validate ntawv qhia zaub mov).

Tsis tas li ntawd, thaum twg thiaj tuaj yeem hu ua daim ntawv XML raws li cov ntaub ntawv siv tau? Ib XML document yog siv tau yog muaj ib ntaub ntawv hom txhais (DTD) los yog XML schema txuam nrog nws, thiab yog hais tias tus ntaub ntawv ua raws li DTD lossis schema.

Tom qab ntawd, lo lus nug yog, lub ntsiab lus ntawm cov ntaub ntawv zoo XML yog dab tsi?

A zoo - tsim cov ntaub ntawv hauv XML yog a ntaub ntawv uas "ua raws li cov cai syntax teev los ntawm XML 1.0 specification nyob rau hauv hais tias nws yuav tsum txaus siab rau ob qho tib si lub cev thiab logical lug ".

Puas yog XML tsim tau zoo?

Ib XML hu ua ntaub ntawv zoo - tsim yog tias nws ua tiav qee cov cai, tau teev tseg los ntawm W3C. Ib XML cov ntaub ntawv tuaj yeem muaj ib lub hauv paus nkaus xwb. Yog li, lub hauv paus ntsiab lus ntawm ib xml document yog ib yam khoom uas tam sim no tsuas yog ib zaug hauv ib qho xml cov ntaub ntawv thiab nws tsis tshwm sim raws li ib tug me nyuam lub caij nyob rau hauv lwm yam khoom.

Pom zoo: