एक्सएमएल स्कीमा आयात तत्व
❮ पूर्ण XML स्कीमा संदर्भ
परिभाषा और उपयोग
आयात तत्व का उपयोग दस्तावेज़ में विभिन्न लक्ष्य नाम स्थान के साथ कई स्कीमा जोड़ने के लिए किया जाता है।
तत्व जानकारी
- मूल तत्व: स्कीमा
वाक्य - विन्यास
<import
id=ID
namespace=anyURI
schemaLocation=anyURI
any attributes
>
(annotation?)
</import>
(चिह्न घोषित करता है कि तत्व आयात तत्व के अंदर शून्य या एक बार हो सकता है)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
namespace | Optional. Specifies the URI of the namespace to import |
schemaLocation | Optional. Specifies the URI to the schema for the imported namespace |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
उदाहरण 1
निम्न उदाहरण दिखाता है कि नामस्थान कैसे आयात करें:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="https://www.w3schools.com/schema"/>
..
..
..
</xs:schema>
❮ पूर्ण XML स्कीमा संदर्भ