xml 스키마
HTML & CSS & JS 2015. 6. 23. 16:53DTD 기능의 보완 및 확장
항상 별도의 파일(*.xsd)로 저장
- *.xsd 선언
-
<schema xmlns="http://www.w3.org/2001/XMLSchema"> ... </schema>
- *.xml 선언
-
<file_name xmlns="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file_name.xsd">
단순형 요소(simple element)
속성이나 하위요소를 가지지 않는 요소
<element name="..." type="..." default="..."/> <element name="..." type="..." fixed="..."/>
복합형 요소(complex element)
속성이나 하위요소를 가지는 요소
<element name="..."> <complexType> <sequence> <element name="..." type="string"/> <element name="..." type="integer"/> </sequence> </complexType> </element>
'HTML & CSS & JS' 카테고리의 다른 글
html escape 문자 (0) | 2015.06.23 |
---|---|
html color code 색상 코드 (0) | 2015.06.23 |
HTML 4.01 tag (0) | 2015.06.22 |
HTML XML 문서 형식 선언 (0) | 2015.06.22 |
XML DTD 선언 (2) | 2015.06.22 |