XML tus cwj pwm puas tuaj yeem muaj ntau tus nqi?
XML tus cwj pwm puas tuaj yeem muaj ntau tus nqi?

Video: XML tus cwj pwm puas tuaj yeem muaj ntau tus nqi?

Video: XML tus cwj pwm puas tuaj yeem muaj ntau tus nqi?
Video: দুনিয়াতে কেউ না থাকলে যা হয় 😓#cartoon #3danimation 2024, Kaum ib hlis
Anonim

yam ntxwv tsis tuaj yeem muaj ntau tus nqi (cov ntsiab lus ua tau ) yam ntxwv tsis tuaj yeem muaj cov qauv ntoo (cov ntsiab lus ua tau ) yam ntxwv tsis yooj yim expandable (rau yav tom ntej hloov)

Ib yam li ib tug yuav nug, XML tus cwj pwm yog dab tsi?

XML Attributes . XML attributes feem ntau yog siv los piav qhia XML cov ntsiab lus, los yog muab cov ntaub ntawv ntxiv txog cov khoom. Feem ntau, los yog feem ntau, yam ntxwv yog siv los muab cov ntaub ntawv uas tsis yog ib feem ntawm cov ntsiab lus ntawm lub XML ntaub ntawv.

Ib qho tseem yuav nug, qhov txawv ntawm XML lub ntsiab lus thiab tus cwj pwm yog dab tsi? Ib keeb yog ib XML node - thiab nws tuaj yeem muaj lwm cov nodes, lossis yam ntxwv . Nws tuaj yeem yog hom yooj yim lossis hom complex. Nws yog ib XML qhov chaw. Ib tus cwj pwm yog tus piav.

Tsis tas li ntawd, koj tuaj yeem tshaj tawm cov cwj pwm hauv XML li cas?

Ib tus cwj pwm yuav tsum yog tshaj tawm siv cov tus cwj pwm - lis tshaj tawm hauv DTD (Cov Ntaub Ntawv Hom Txhais). Ib tus cwj pwm element yog siv yam tsis muaj lus hais thiab cov tus cwj pwm tus nqi yog siv rau hauv ib qho ('') lossis ob nqe lus hais (""). Ib tus cwj pwm lub npe thiab nws tus nqi yuav tsum ib txwm tshwm sim hauv khub.

XML cov cwj pwm puas tuaj yeem muaj qhov chaw?

Cov xml : space attribute tau muab tso rau ntawm tej yam hauv lub XML cov ntaub ntawv thiab muab tus nqi ntawm kev khaws cia kom pom tias cov dawb qhov chaw yog qhov tseem ceeb. Txhawm rau siv xml : qhov chaw nyob rau hauv cov ntsiab lus validating, lub tus cwj pwm yuav tsum tau tshaj tawm hauv DTD lossis Schema tus cwj pwm npe rau cov khoom uas nws siv.

Pom zoo: