Differences between revisions 3 and 7 (spanning 4 versions)
Revision 3 as of 2007-07-18 17:02:24
Size: 935
Editor: 152
Comment:
Revision 7 as of 2012-06-12 15:25:38
Size: 1687
Editor: 61
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
http://www.w3.org/XML/Schema WikiPedia:XML_Schema  * http://www.w3.org/XML/Schema
 *
WikiPedia:XML_Schema
 * http://www.w3schools.com/schema/default.asp
Line 5: Line 7:
[W3C]에서 표준화하는 [XML] 스키마 정의언어. (XmlSchema라고도 불리운다.) [DTD]를 현대화하려는 노력에서 가시화된것으로 [DTD]에 비해 엄격한 유효성 검사와 데이터 타입정의들을 가능하게 만들었다. [[W3C]]에서 표준화하는 [[XML]] 스키마 정의언어. (XmlSchema라고도 불리운다.) [[DTD]]를 현대화하려는 노력에서 가시화된것으로 [[DTD]]에 비해 엄격한 유효성 검사와 데이터 타입정의들을 가능하게 만들었다.
Line 7: Line 9:
[XSD]가 [DTD]보다 향상된 것 중 가장 중요한 내용은 '정의언어'라는 면이다. [[XSD]][[DTD]]보다 향상된 것 중 가장 중요한 내용은 '정의언어'라는 면이다.
Line 12: Line 14:
 * [http://epro.tistory.com/49 XML scheme] (2% able blog)
 * [http://webd.somegate.com/topic.php?topic_uid=545 표준데이터 형식을 DTD에서 XSD로]
 * [http://web2.gwangju.ac.kr/~leekyum/metadata_p/xml_schema_p.htm XML Schema - 김이겸교수 홈페이지]
 * [[http://epro.tistory.com/49|XML scheme]] (2% able blog)
 * [[http://webd.somegate.com/topic.php?topic_uid=545|표준데이터 형식을 DTD에서 XSD로]]
 * [[http://web2.gwangju.ac.kr/~leekyum/metadata_p/xml_schema_p.htm|XML Schema - 김이겸교수 홈페이지]]
Line 16: Line 18:
== Example ==
complexType extension example
{{{
<xs:element name="employee" type="fullpersoninfo"/>

<xs:complexType name="personinfo">
  <xs:sequence>
    <xs:element name="firstname" type="xs:string"/>
    <xs:element name="lastname" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

<xs:complexType name="fullpersoninfo">
  <xs:complexContent>
    <xs:extension base="personinfo">
      <xs:sequence>
        <xs:element name="address" type="xs:string"/>
        <xs:element name="city" type="xs:string"/>
        <xs:element name="country" type="xs:string"/>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>
}}}

XmlSchemaDefinitionLanguage

W3C에서 표준화하는 XML 스키마 정의언어. (XmlSchema라고도 불리운다.) DTD를 현대화하려는 노력에서 가시화된것으로 DTD에 비해 엄격한 유효성 검사와 데이터 타입정의들을 가능하게 만들었다.

XSDDTD보다 향상된 것 중 가장 중요한 내용은 '정의언어'라는 면이다.

Document type과 data type을 동시에 정의한다. 데이터타입은 숫자, 문자열등을 RegularExpression을 이용하여 dates, times등의 수준까지 매치한다.

관련정보

Example

complexType extension example

<xs:element name="employee" type="fullpersoninfo"/>

<xs:complexType name="personinfo">
  <xs:sequence>
    <xs:element name="firstname" type="xs:string"/>
    <xs:element name="lastname" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

<xs:complexType name="fullpersoninfo">
  <xs:complexContent>
    <xs:extension base="personinfo">
      <xs:sequence>
        <xs:element name="address" type="xs:string"/>
        <xs:element name="city" type="xs:string"/>
        <xs:element name="country" type="xs:string"/>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>


CategoryLanguage

XSD (last edited 2012-06-12 15:25:38 by 61)

web biohackers.net