XML: 두 판 사이의 차이

내용 삭제됨 내용 추가됨
편집 요약 없음
편집 요약 없음
111번째 줄:
* 엘리먼트의 태그는 대소문자를 구분한다; the beginning and end tags must match exactly. 태그 이름은 다음 문자를 포함할 수 없다 <code>!"#$%&'()*+,/;<=>?@[\]^`{|}~</code>. 또 공백 문자도 포함할 수 없으며, <code>-</code>, <code>.</code>, 또는 숫자로 시작할 수 없다.
* 하나의 "루트root" 엘리먼트가 다른 모든 엘리먼트를 포함한다.
 
==스키마Schema와 유효화Validation==
In addition to being well-formed, an XML document may be ''valid''. 이는 문서가 [[Document Type Definition]] (DTD)에 대한 참조를 포함하고, 문서의 엘리먼트들과 애트리뷰트들이 그 DTD에 선언되어 있으며 DTD가 명시하는 문법 규칙을 따른다는 것을 의미한다.
 
XML processors are classified as ''validating'' or ''non-validating'' depending on whether or not they check XML documents for validity. A processor that discovers a validity error must be able to report it, but may continue normal processing.
 
A DTD is an example of a ''[[XML schema|schema]]'' or ''grammar''. Since the initial publication of XML 1.0, there has been substantial work in the area of schema languages for XML. Such schema languages typically constrain the set of elements that may be used in a document, which attributes may be applied to them, the order in which they may appear, and the allowable parent/child relationships.
 
 
== 같이 보기 ==