XML-skema - invoerelement
❮ Voltooi XML-skemaverwysing
Definisie en gebruik
Die invoerelement word gebruik om veelvuldige skemas met verskillende teikennaamruimtes by 'n dokument te voeg.
Elementinligting
- Ouerelemente: skema
Sintaksis
<import
id=ID
namespace=anyURI
schemaLocation=anyURI
any attributes
>
(annotation?)
</import>
(Die ? teken verklaar dat die element nul of een keer binne die invoerelement kan voorkom)
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 |
Voorbeeld 1
Die volgende voorbeeld wys hoe om 'n naamruimte in te voer:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="https://www.w3schools.com/schema"/>
..
..
..
</xs:schema>
❮ Voltooi XML-skemaverwysing