Code: Select all
<vector3>10.2 20.5 1</vector3>
<vector3>10.2, 20.5, 1</vector3>
<vector3>[10.2, 20.5, 1]</vector3>
<vector3>(10.2, 20.5, 1)</vector3>
xml스키마를 어떤식으로 작성해야 될까요.
데이타 부분을 통채로 string하는것 빼고, 각 숫자를 float으로 하고 싶고요...
정 string으로 한다면 regex표현식으로 제약을 주고 싶습니다.
저는 현재 attribute를 사용해서
xml문서에서
Code: Select all
<vector3 x=4 y=2 z=3/>
스키마 문서에서는
Code: Select all
<xsd:complexType name="v3">
<xsd:attribute name="x" type="xsd:float"/>
<xsd:attribute name="y" type="xsd:float"/>
<xsd:attribute name="z" type="xsd:float"/>
</xsd:complexType>
<xsd:element name="vector3" type="v3"/>
우쨔야 되는지 알켜주세요~~