XML 스키마 가져오기 요소
❮ 완전한 XML 스키마 참조
정의 및 사용
import 요소는 문서에 대상 네임스페이스가 다른 여러 스키마를 추가하는 데 사용됩니다.
요소 정보
- 상위 요소: 스키마
통사론
<import
id=ID
namespace=anyURI
schemaLocation=anyURI
any attributes
>
(annotation?)
</import>
(? 기호는 요소가 가져오기 요소 내에서 0번 또는 1번 발생할 수 있음을 선언합니다)
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 스키마 참조