XML Schema တွင် Element ပါဝင်ပါသည်။
❮ XML Schema အကိုးအကားကို အပြီးသတ်ပါ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပါဝင်သည့်ဒြပ်စင်ကို စာရွက်စာတမ်းတစ်ခုသို့ တူညီသောပစ်မှတ်အမည်နေရာပါရှိသည့် schemas အများအပြားကို ထည့်ရန်အသုံးပြုသည်။
ဒြပ်စင်အချက်အလက်
- ပင်မဒြပ်စင်များ- schema
အထားအသို
<include
id=ID
schemaLocation=anyURI
any attributes
>
(annotation?)
</include>
( ? နိမိတ်လက္ခဏာသည် ဒြပ်စင်ပါဝင်သည့်ဒြပ်စင်အတွင်း၌ သုည သို့မဟုတ် တစ်ကြိမ် ဖြစ်ပေါ်နိုင်ကြောင်း ကြေငြာသည်)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
schemaLocation | Required. Specifies the URI to the schema to include in the target namespace of the containing schema |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
ဥပမာ ၁
ပါဝင်သော အစီအစဉ်များဖြင့်၊ ပါဝင်သောဖိုင်များအားလုံးသည် တူညီသောပစ်မှတ်အမည်နေရာကို ရည်ညွှန်းရပါမည်။ schema ပစ်မှတ် namespace သည် မကိုက်ညီပါက၊ ပါဝင်မည် မဟုတ်ပါ။
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://www.w3schools.com/schema">
<xs:include schemaLocation="https://www.w3schools.com/xml/customer.xsd"/>
<xs:include schemaLocation="https://www.w3schools.com/xml/company.xsd"/>
..
..
..
</xs:schema>
❮ XML Schema အကိုးအကားကို အပြီးသတ်ပါ။