> For the complete documentation index, see [llms.txt](https://mineunyoung.gitbook.io/3.1.1.3-metadataversion/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mineunyoung.gitbook.io/3.1.1.3-metadataversion/2.13-data-formats.md).

# 2.13  Data Formats

데이터 형식

All XML attribute values and some element bodies are text strings. These strings are defined by **data format**. Each **data format** specifies the allowable form of the string, the corresponding XML Schema datatype, and the intended use of the value. The set of ODM **data formats** follows:

모든 XML 속성 값과 일부 요소의 Body는 텍스트 문자열이다. 이러한 문자열은 **Data Format**으로 정의된다. 각 **Data Format**은 허용되는 문자열 형식(**Allowed String Pattern**), 해당 XML 스키마 데이터 유형(**Schema DataType**) 및 값의 의도된 사용을 지정한다. ODM의 **Data Format**은 다음과 같다.

| Format Name        | Schema DataType       | Allowed String Pattern                                                                                                                                               |
| ------------------ | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| integer            | xs:integer            | -?digit+                                                                                                                                                             |
| positiveInteger    | xs:positiveInteger    | +?digit+ (and representing an integer number > 0)                                                                                                                    |
| nonNegativeInteger | xs:nonNegativeInteger | +?digit+ (and representing an integer number >= 0)                                                                                                                   |
| float              | xs:decimal            | **-**?digit+(**.**&#x64;igit+)?                                                                                                                                      |
| date               | xs:date               | YYY&#x59;**-**&#x4D;&#x4D;**-**&#x44;D                                                                                                                               |
| time               | xs:time               | h&#x68;**:**&#x6D;&#x6D;**:**&#x73;s(**.**&#x6E;+)? (((**+**\|**-**)h&#x68;**:**&#x6D;m)\|Z)?                                                                        |
| datetime           | xs:dateTime           | YYY&#x59;**-**&#x4D;&#x4D;**-**&#x44;D**T**h&#x68;**:**&#x6D;&#x6D;**:**&#x73;s(**.**&#x6E;+)?(((**+**\|**-**)h&#x68;**:**&#x6D;m)\|Z)?                              |
| text               | xs:string             | *any sequence of characters*                                                                                                                                         |
| oid                | xs:string             | *any sequence of characters (minLength="1")*                                                                                                                         |
| oidref             | xs:string             | *any sequence of characters (minLength="1")*                                                                                                                         |
| name               | xs:string             | *any sequence of characters (minLength="1")*                                                                                                                         |
| sasName            | xs:string             | ( letter \| \_ )( letter \| digit \| \_ )\* (maxLength="8")                                                                                                          |
| fileName           | xs:anyURI             | *any sequence of characters*                                                                                                                                         |
| languageTag        | xs:language           | LL (**-**&#x43;C)\* *(e.g.* "fr-FR"*)*                                                                                                                               |
| string             | xs:string             | <p>Semantically equivalent to <strong>text</strong> but directly supported as XML Schema datatype <br><br>의미상 텍스트와 동일하지만 XML 스키마 데이터 유형으로 직접 지원된다.</p>               |
| boolean            | xs:boolean            | (true \| false \| 1 \| 0)                                                                                                                                            |
| double             | xs:string             | (((+\|-)?\[0-9]+(.\[0-9]+)?((D\|d\|E\|e)(+\|-)\[0-9]+)?)\|(-?INF)\|(NaN))                                                                                            |
| hexBinary          | xs:hexBinary          | hex-encoded binary stream data                                                                                                                                       |
| base64Binary       | xs:base64Binary       | binary stream encoded using Base64 Alphabet                                                                                                                          |
| hexFloat           | xs:hexBinary          | up to 16 characters                                                                                                                                                  |
| base64Float        | xs:base64Binary       | up to 12 characters                                                                                                                                                  |
| partialDate        | xs:date               | **\[**&#x59;YY&#x59;**\[-**&#x4D;&#x4D;**\[-**&#x44;D ]]]                                                                                                            |
| partialTime        | xs:time               | **\[**&#x68;&#x68;**\[:**&#x6D;&#x6D;**\[:**&#x73;s(**.**&#x6E;+)? (((**+**\|**-**)h&#x68;**:**&#x6D;m)\|Z)?]]]                                                      |
| partialDatetime    | xs:dateTime           | **\[**&#x59;YY&#x59;**\[-**&#x4D;&#x4D;**\[-**&#x44;&#x44;**\[T** h&#x68;**\[:**&#x6D;&#x6D;**\[:**&#x73;s(**.**&#x6E;+)? ((**+**\|**-**)h&#x68;**:**&#x6D;m)?]]]]]] |
| intervalDatetime   | xs:string             | partialDatetime/partialDatetime)\|(durationDatetime/partialDatetime)\|(partialDatetime/durationDatetime)                                                             |
| durationDatetime   | xs:duration           | (((+\|-)?P((((n(n+)?)Y)?((nn+)?)M)?((nn+)?)D)?)(T(((n(n+)?)H)?((n(n+)?)M)?((n(n+)?)((.n+)?)S)?)?)?\|(((n(n+)?)W))))                                                  |
| incompleteDatetime | xs:string             | \[YYYY\|-]-\[MM \|-]-\[DD\|-]]]**T**\[hh\|-]:\[mm\|-]:\[ss.s\|-]\[?(+\|-)nn:nn\|Z]                                                                                   |
| incompleteDate     | xs:string             | \[YYYY\|-]-\[MM \|-]-\[DD\|-]                                                                                                                                        |
| incompleteTime     | xs:string             | **T**\[hh\|-]:\[mm\|-]:\[ss.s\|-]\[?(+\|-)nn:nn\|Z]                                                                                                                  |
| URI                | xs:anyURI             |                                                                                                                                                                      |
