注.本部分实例中命名空间‘gb’仅是为了举例,可以忽略,或使用其他任何合适的命名空间.
<xsd: schema targetNamespace="http://www, gb. cn/examples/orders"
< xsd:element name ="M_ORDERS">
< xsd:complexType>
<xsd:sequence>
<xsd:element ref="gb:D_1004"/>
<xsdselement ref="gb:S_DTNf" minOccurs="l" maxOccurs="2"/>
<xsd:element ref="gb:G_SG2" minOccurs="l" maxOccursffi"2"/>
<!-可用"G_NAD"替换—>
<xsd:element ref="gbtD_6345" minOccurs="0" maxOccurs="l"/>
<xsd:element ref="gb:G_SG25"minOccurs="l" maxOccurs="10"/>
<!-可用"G_NAD"替换—>
<xsd:element rel="gb: D_5004_2"/>
</xsd: sequende>
<xsd:attribute name=UEDIPath" type=Uxsd:string" fixed="ORDERS"/>
</xsd t complexType>
</xsd: element>
<xsd:element name="S_DTM">
<xsd: complexType>
< xsd: sequence>
<xsd:element ref="gb:D_2005"/>
<xsd: element ref='gb:D_2380"/>
</xsd: sequence>
<xsd:attribute name="EDIPath"type="xsds string"
fixed="ORDERS. DTM(0030)"/ >
</xsd:complexType>
</xsd:element>
<xsd:element nameffi"G_SG2">
xsd: complexType~
xsd. sequence~
<xsd:elenient ref=" gb:D_3035"/~>
<xsd:element ref="gb:D_3036"/>
<xsd:element ref="gb:D_3042" minOecurs="0" maxOccurs="l"/>
<xsd:element ref="gb:13_3164" minOeeurs="0" maxOccurs="l"/>
<xsd:element ref="gb:D_3251" minOccurs="0" maxOccurs = "l"/>
<xsd:element ref="gb:S_FII" minOccurs="0" maxOccurs = "1"/>
<xsd:element ref="gb:D_1154" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="gb:D_3413" mmuccurs=="0" maxOccurs="l"/>
<xsd:element ref="gb:S_COM" minOccurs="0" maxOccurs="2"/>
</xsd: sequence>
<xsd: attribute name="EDIPath" typeffi="xsd: string"
fixed="ORDERS. SG2(0110)"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="G_SG25">
<xsd:complexType~
<xsd:sequen~e~
<xsd:element refffiVgb:D_1082" minOccurs="0" maxOccurs="l"/>
<xsd:element ref="gb:D_7140"/>
<xsd:element ref="gb:D_7008" minOccurs="0" maxOccurs="l"/>
<xsd:element ref="gb:D_7008_2" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="gb: D_6060" minOccurs="0"maxOccurs="l"/>
<xsd:element ref="gb:D_6411"minOccurs="0"maxOceurs="l"/>
<xsd:element ref ="gb: D_5004" minOceurs="0" maxOccurs ="1"/>
<xsd:element ref="gl):D_5118" minOccurs="0" maxOccursf="l"/>
</xsd:sequence>
<xsd:attribute name="EDIPath" typef"xsd:string"
fixed ="ORDERS. SG25 (0930) "/>
</ xsd: complexType>
</xsd: element>
<xsd,element name="S_FII">
<xsd: complexType>
<xsd:sequence>
<xsd:element ref="gb:D_3194"/>
<xsdzelement ref="gb:D_3433"/>
<xsd:element ref="gb:D_3432>
<xsd:element ref="gb:D_3432 mmOccurs= 0 maxOccurs="l"/>
</xsd:sequence>
<xsd: attribute name ="EDIPath" type = xsd: string>
fixed="ORDERS. SG2.FII(0140)"/>
</xsd, complexType>
</xsd:element>
<xsd:element name ="S_COM">
<xsd: complexType>
<xsd: sequence>
<xsd: element ref ="gb: D_314 8"/>
<xsd: element ref="gb:D_3155"/>
</xsd:sequence>
<xsd:attribute name="EDIPath" type="xsd: string">
fixed="ORDERS. SG2.SG5. COM(0230)"/>
</xsd: complexType>
</xsd: element>
<xsd:element name="D_1004">
<xsd: complexType>
<xsd:simpleContent>
<xsd:extension baseffi"gb: stringl" 8">
<xsd: attribute name="EDIPath" type='xsd: string">
fixed="ORDERS. BGM. 1004 (0020:020)"/>
</xsd: extension>
</xsd: simpleContent>
</xsd: complexType>
</xsd: element>
<xsd:element name="D_6345">
< xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="gb: D_6345">
<xsd: attribute name='EDIPath" type="xsd: string">
fixed="ORDERS. SGT.CUX. C504. 6345 (0250:010 : 02) "/>
</xsd:extension>
</ xsd: simpleContent>
</xsd: complexType>
< / xsd z element>
<xsd:element name="D_5004_2">
<xsd: complexType>
<xsd: simpleContent>
<xsd:extension base="gbs decimall.. 12">
<xsd:attrlbutename-=EDIPath type=xsd: string>
fixed="ORDERS. MOA. C516. 5004(2010:010:02)"/>
</xsd:extension>
/xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="D_2005">
< xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="gbt D_2005">
< xsd:attribute name= "EDIPath" type="xsd, string">
fixed="ORDERS. DTM. C507. 2005(0030 =010:01)"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complex.Type>
</xsd:element>"
<xsd:element name="D_2380">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="gbt decimal8">
<xsd:attribute name="EDIPath" type=" xsd: strmg">
fixed ="ORDERS. DTM. C507. 2380 (0030,010,02)"/>
</xsd:extension>
< / xsd:simpleContent>
< / xsd:complexType>
< / xsd:element >
<xsd:element narne="D_3035">
< xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="gb.D_3035">
<xsd:attribute name= EDIPath type="xsdt strin">
fixed="ORDERS. SG2. NAD. 3035(0120 1010) "/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
< xsd:element name ="D_3036">
< xsd:complexType>
< xsd:simpleContent>
<xsd:extension base="gb: stringl.. 10">
<xsd:attribute name="EDIPath" type="xsd:string">
fixed="ORDERS, SG2. NAD. C080. 3036(0120 2 040,01)"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd: element>
<xsd:element name="D_3042">
xsd: complexType>
xsd:simpleContent >
xsd:extension base="gb: stringl.. 35">
<xsd:attribute name="EDIPath" type ="xsd: string"
Fixed="ORDERS. SG2. NAD. C059. 3042(0120:050.01 )"/>
</xsd: extension>
</xsd: simpleContent>
</xsd: compldxType>
</xsd: element>
<xsd: element name="D_3164">
<xsd: complexType>
xsd: simpleContent>
<xsd: extension base ="gb: stringl.. 35">
<xsd:attribute name---"EDIPath"type="xsd: strmg"
fixed="ORDERS. SG2. NAD. 3164(0120.060)"/>
</xsd: extension>
</xsd: simpleContent>
</'xsd.. complexType>
</xsd: element>
<xsd: element nam.effi"D_3251">
< xsd: complexType>
< xsd: simpleContent>
<xsd:extension base = gb: decimal6 >
<xsd: attribute name="EDIPath" type="xsd, string"
fixed="ORDERS. SG2. NAD. 3251(0120:080)"/>
</xsd: extension>
</xsd: simpleContent>
</xsd: complexType>
</xsd: element>
< xsd: element name="D_ll 54">
< xsd: complexType>
<xsd: simpleContent >
< xsd: extension base ="gb: stringl.. 35">
<xsd: attribute name ="EDIPath" type= "xsd: string"
Fixed="ORDERS. SG2. SG3. RFF. C506. 1154(0160.010:02)"/>
</xsd: exter/sion>
</xsd.simpleContent>
</xsd: complexType>
</xsd: element>
<xsd: element name="D_3413">
< xsd: complexTYpe>
<xsd, simpleContent>
<xsd..extension base="gb,stringl..15"~>
<xsd,attribute name="EDIPath" Type= xsd:strmg">
Fixed="ORDERS. SG2. SG5. CTA. C056.3413(0220:020,01) :/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="D_3194">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="gb, decimall0">
<xsd:attiibute name="EDIPath"type="xsb:string">
Fixed="ORDERS. SG2. FII. C078. 3194(0140,020,01) "/>
</ xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element nameffi"D_3433">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="gb:decimal9">
<xsd:attribute name="EDIPath" type="xsd,string">
fixed="ORDERS. SG2. FII. C088. 3433(0140,030,01) "/>
< / xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="D_3432">
<xsd:complexType>
<xsd: simpleContenC>
<xsd: extension base="gb: stringl.. 10">
<xsd:attlibute name="EDIPath" type="xsd, string"
fixed="ORDERS. SG2. FII. C088. 3432(0140,030,07) "/>
</xsd, extehsion>
</xsd: simpleContent>
/xsd, complexType>
</xsd: element>
<xsd:element name="D_3148">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="gb=stringl.. 11">
<xsd:attribute namef"EDIPath" type= xsd:string>
<xed="ORDERS. SG2. SG5. COM. C076. 3148(0230 s010:01)"/>
</xsd:extension>
</ xsd:simpleContent>
</ xsd:complexType>
</xsdzelement>
<xsdselement name="D_ 3155">
<xsd g complexType>
<xsd s simpleContent>
<xsd, extension base="gb:D_3155">
<xsdsattribute name="EDIPath" type= xsd:strmg>
fixed="ORDERS. SG2. SG5. COM. C076.3155(0230:010,02)"/>
</xsd:extension>
/xsd:simpleContent>
/ xsd:complexType>
</xsd:element>
<xsd:element name="D-1082">
< xsd:complexType>
xsd:simpleContent>
<xsd:extension base= gb:declma! .. 5">
<xsds attribute name="EDIPath" type=Vxsd ~ string"
fixed="ORDERS. SG25. LIN. 1082(0940,010)"/>
/ xsd, extension>
</xsd, simpleContent>
/xsd, comphxType>
</xsd:element>
<xsd:element namd="D_7140">
<xsd:complexType>
xsd:simpleContent>
<xsd:extension base="gb:stringl.. 10">
<xsdsattr~bute name='EDIPath" type= xsdsstring>
Fixed="ORDERS. SG2"5. LIN. C212. 7140(0940:030:0 ) /
</ xsd, extension>
</xsd, simpleContent>
</xsd, complexType>
</xsd s element>
<xsdselement name="D_7008">
<xsdg complexType>
< xsd, simpleContent>
<xsd s extension base="gb, stringl.. 20">
<xsd, attribute name="EDIPath" type ffi xsd, string
Fixed="ORDERS. SG25. IMD. C273. 7008(0960,030,04)"/>
</xsd, exter/sion>
</xsd:simpleContent>
</xsd :complexType>
</xsd:element>
<xsd: element name="D_7008_2">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base ="gb: stringl.. 20">
<xsd: attribute name="EDIPath" type="xsd: string"
fixed="ORDERS. SG25. IMD. C273.7008(0960:030.05)"/>
</ xsd :extension>
</xsd:simpleContent>
</ xsd:complexType>
</xsd:element>
<xsd: element name="D_6060">
<xsd:complexType>
<xsd:simpleContent>
xsd: extension base ="gb: decimal 1.. 5">
<xsdzattribute name="EDIPath" type="xsd:string">
Fixed="ORDERS. SG25. QTY. C186.6060(0970:010:02) "/>
</xsd: extension>
</xsd: simpleContent>
</xsd. complex.Type>
</xsd:element>
<xsd:element name="D_6411">
<xsd: complexType>
<xsd: simpleContent >
<xsd. extension base="gb. D_6411">
< xsd: attribute name="EDIPath"t type = xsa. string>
fixed="ORDERS. SG25. QTY. C186.6411(0970:010:03)"/>
</ xsd: extension>
< / xsd: simpleContent>
</xsd z complexType>
</xsd: element>
<xsd: element name="D_5004">
<xsd: complexType>
< xsd :simpleContent>
<xsd: extension base="gb: decimall.. 18">
< xsd: attribute name="EDIPath" type=xsd: string
Fixed="ORDERS. SG25. MOA. C516. 5004(0980.010:02)"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd: element>
<xsd: element name="D_5118">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="gb"decimall.. 12">
<xsd:attribute name="EDIPathn type= xsd:strlng">
Fixed="ORDERS. SG25. SG27. PRI. C509. 5118(11502010:02)"/>
</ xsd:extension>
</xsd:simpleContent>
</ xsd:complexType>
</ xsd:element>
<xsd:simpleType name ="stringl.. 8">
xsd:restriction basef"xsd:strmg" >
<xsd:whiteSpace value= preserve/>
<xsd:minLength value="l"/>
<xsd: maxLength value="8"/>
</xsd:restrictiori>
</xsd:simpleType>
<xsd:simpleType fiame="D_2005">
<xsd:restrictidn base="xsd:string">
<xsd: whiteSpacevaluer preserve/>
<xsd:minLenth valuer"l"/>
<xsd:maxLength value="3"/>
<xsd:enumeration value="4"/>
<xsd:enumeration value-="2"~>
</xsd:restrictiori>
</xsd:simpleType>
<xsdssimpleType riame="decimala">
<xsd:restriction base ="xsd: decimal">
<xsd:totalDigits value="8"/>
</xsd:restrtcUori>
</xsd:simpleType.>
<xsdz:impleType rlame="D_3035">
<xsd:restriction base ="xsd: string">
< xsd:whlteSpace value= preserve"/>
<xsd:minLength value="l"/>
<xsd:maxLength value="3"/>
<xsd:enumeration value="BY"/>
<xsd:enumeration value="SE'/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType r~ame='stringl="0":>
<xsd:restriction base="xsd: string">
<xsd:whiteSpace value='preserve"/>
<xsd:minLength value="l"/>
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="stringl.. 35">
xsd:restriction base="xsd ~ string"~>
<xsd:whiteSpace value= preserve/>
<xsdzminLength value="1"/~>
<xsd:msxLength value="35"/>
</xsd: restriction>
</xsd: simpleType>
<xsd: simpleType name="decimal6">
<xsd: restriction base='xsdl decimal">
<xsd: totalDigits value="6"/>
</xsd: restriction>
</xsd: simpleType>
<xsd:simpleType name ="decimall0">
<xsdsrestrietion base="xsd:decimal">
<xsd: totalDigits value="10"/>
</xsd: restriction>
</xsd: simpleTypie>
<xsd: simpleType" name="deCimalg">
<xsd: restriction base=nxsd: decimal">
<xsd: totalDigits value="9"/>
</xsd: restriction>
</xsd s simpleType>
xsd: simpleType name="stringl.. 70">
<xsd: restriction base ="xsd s string">
<xsd:whiteSpace value= preserve/">
<xsd:minLength value="l"/>
<xsd:maxLength value="70"/>
</xsd:restriction>
</xsd: simpleType~
xsd:simpleType name=" nstringl.. 15">
xsd:restriction basenxsd: string">
<xsd:whiteSpace value= preserve/>
<xsd:minLength value="l”/>
<xsd~maxLength value="15"/>
</ xsd: restriction>
</xsd: simpleType>
<xsd~simpleType name="stringl.. 11">
<xsd: restriction base="xsd: string">
<xsd:whiteSpace value="preserv"/>
<xsd:minLength valueffi"l"/~"
< xsd:maxLength value="11"/>
</xsd:restriction>
</xsd:simpleTypC>
<xsd:simpleType name="D_3155">
<xsd- restriction base="xsd:strmg" >
< xsd: whiteSpace value= preserve/>
<xsd:minLengtfi value="1"/>
<xsd:maxLength value="3"/>
<xsd:enumeration value="TE"/>
<xsd: enumeration value="FX"/>
</xsd: restriction>
</xsd: simpleType>
<xsd: simpleType name="D_6345">
< xsd:restriction base ="xsd: string">
<xsd:whiteSpace value ="preserve"/>
<xsd:minLength value="l"/>
<xsd:maxLength value="3"/>
<xsd:enumeration value="CNY"/>
<xsd:enumeration value="OBP"/>
< / xsd:restriction >
< / xsd: simpleType>
<xsd: simpleType name="decimall.. 5">
< xsd: restriction base=" xsd: decimal">
<xsd: totalDigits valueffi"5"/>
</xsd: restriction>
</xsd, simpleType>
< xsd: simpleType name ="stringl.. 20">
< xsd: restriction base ="xsd: string">
<xsd:whiteSpace value="preserve /">
<xsd:minLength value="1"/>
<xsdsmaxLength value="20"/>
</xsd: restriction:>
</xsd: simpleType>
<xsd: simpleType name="D_6411">
<xsd:restriction base= xsd: strmg>
< xsd: whiteSpace value="preserve"/>
<xsd:minLength value="1"/>
<xsd:maxLength value="3"/>
<xsdsenumeration value="TNE"/>
<xsd:enumeration value="KOM"/>
<xsd:enumeration value ="GRM"/>
<xsd:enumeration value="LBR"/>
<xsd:enumeration value="LTR"/>
<xsdzenumeration value="DZN"/>
</xsd, restriction:>
</xsd, simpleType:>
<xsd:simpleType name="decimall.. 18">
xsd s restriction base ="xsd, decimal">
<xsd. totalDigits value="18"/>
</xsd s restriction>
</xsd: simpleType:>
xsd: simpleType n/lme ="decimal l.. 12">
<xsd:restriction base="xsd = decimal">
<xsd: totalDigits value="12"/>
</xsd, restriction:>
</xsd: simpleType:>
</xsd,schema:>
<gb:D_1004>128576</gb:D_1004>
<gb:S_DTM>
<gb:D_2005> 4</gb:D_2005 >
<gb:D_2380>20010606</gb=D_2380>
</gb:S_DTM>
< gb:G_SG2 >
<gb:D_3035> BY</gb: D_3035>
<gb:D_3036>CNMIEC</gb:D_3036>
5 SANLIHE ROAD</gb:D_3042><gb:D_3164>BEIJING</gb: D_3164>
<gb:D_3251>100044</gb:D_3251>
<gb:S_FII>
<gb:D 3194>1236547890</gb:D_3194>
<gb:D_3433>110010170</gb:D_3433>
<gb:D_3432>ICBC</gb:D_3432>
</gb:S_FII>
<gb:D_1154>1234567</gb:D_1154>
<gb:D_3413>ZHANGSAN</gb:D_3413>
<gb: S_COM>
<gb:D_3148>01068495888</gb:D_3148>
<gb:D_3155 >TE</gb: D_3155>
</gb:S_COM>
</gb:G_S02>
<gb:D_6345>CNY</gb=D_6345>
<gb:G_SG25 >
<gb:D_1082>l</gb:D_1082>
<gb:D_7140>2001</gb: D_7140>
<gb:D_7008> MINERAL</gb:D_7008>
<gb:D_6060>2</gb:D_6060>
<gb:D_641 l>TNE</gb:D_6411>
<gb: D_5004>2800"</gb:D_5004>
<gb:D_5118>1400</gb:D_5118>
/gb:G_SG2 5 >
<gb:D_5004_2>28Q0</gb:D_5004_2>
</gb, M_ORDERS>
GB/T 19709--2005/1SO/TS 20625.2002
<xsdzelement name e"Order">
<xsd:complexType>
<xsd: sequence>
< xsd :element"ref= OrderNumber/>
xsd:element" ref="OrderDates"mmOccurs= "1 "maxOccurs="2"/>
<xsd:element"ref="OrderParties"mmuccurs"1" maxOccurs="2"/>
<xsd:element"ref="OrderCurrency" mmOccurs= "0" maxOccurs="l"/>
<xsd:element"ref="LineItems" minOccurs="1" maxOccurs="lO"/>
<xsd:element"ref=" TotalOrderValue/>
</xsd:sequence>
<xsds attribute name="EDIPath"=type= xsd:strmg fixed="ORDERS"/>
< / xsd:complexTyPe">
</xsd:element>
<xsd:element name ="OrderDates">
< xsd:complexType>
<xsd:sequence>
<xsd:element:ref= DateQuahfier/>
<xsdse:ement ref="Date"r/>
</xsd:sequence::>
<xsd:attribute name ="EDIPath"type="txsd: string"
fixed="ORDERS. DTM(0030)"/>
</ xsd:complexType>
</xsd:element>
<xsdselement name="OrderParties">
xsd:complexTyp6>
< xsd:sequence>
<xsd:element ref='PartyQuahber/>
GB/T 19709--2005/ISO/TS20625=2002
<xsd:element ref="Nam4' />
<xsd:element rely="Street" minOccurs="O" maxOccurs="1"/>"
<xsd:element ref='Cityu minOccurs="O" maxOccurs="1"/>
<xsd:element ref="PostCode" mmOccurs="0"maxOccurs="l"/~
<xsd:element ref="Accountlnformation" minOccurs="O" maxOccurs="l"/>
<xsd:element ref="VATNumber" minOccurs="O" maxOccurs="l"/>
<xsd:element ref="ContactName" mmuccurs= u maxOccurs="l"/>
xsd:element ref="Communication" minOccurs="O" maxOccurs="2"/>
</ xsd: sequence>
<xsdtattribute name="EDIPath" type="xsdzstring"
fixed="ORDERS. SG2(0110)"/>
< / xsd: complexType>
</xsd: element>
<xsd: element name ="Lineltems">
<xsd: eomplexTyPe>
<xsd:sequence/>
<xsd, elemefit ref="LineltemNumbe/"minOccurs="0" maxOccurs="l"/>
< xsd: elemelit ref="SuppliersArtieleNumber/>
<xsd:element ref="ItemTextLinel" minOecurs="0" maxOccurs~-"l"/>
<xsd:element ref="ItemTextLine2" minOccurs="0" maxOccurs="l"/>
<xsd:element ref="QuantityOrdered" minOccurs="0" maxOecurs="l"/>
<xsdzelement ref="MeasureUnit" minOccurs="O" maxOecurs="l"/>
<xsd,element ref="LineltemAmount" minOecurs="0" maxOeeurs="l"/>
<xsd:element ref="UnitPrice" minOeeurs="O"maxOecurs="l"/>
</ xsd: sequence>
<xsdssttribute name='EDIPath" type="xsdzstring"
fixed--"ORDERS. SG25(0930) "/>
< / xsd:complexType>
</xsd: element>
<xsdzelement name="Accountlnformation">
<xsd:complexType>
< xsd:sequence>
<xsd:element ref ="AccountNumber"/>
<xsd: element ref="BankName" minOccurs"0" maxOccurs="l"/>
</xsd s sequene"\>
<xsdzattribute name="tEDIPath" type="xsdzstring">
fixed="ORDERS. SG2. FII(0140)"~/ >
</xsd:complexType>
</xsd : element>
<xsdselement name =nCommunication">
< xsd: complexType>
< xsd:sequence>ref= CommumcatlonNumber/>
< xsd:element>
<xsd:element ref='CommunicationChannel"/>
</xsd: sequence>
<xsd:attribute name="EDIPath" type="xsd,string">
fFixed="ORDERS. SG2. SG5. COM(0230)"/>
</ xsd:complexType>
</xsd: element>
<xsdselement name ="OrderNumber">
< xsd:complexType>
<xsd:simpleContent>
<xsd:extension base ="stringl.. 8">
<xsd:attribute name="EDIPath" type=xsd :string"
fixed="ORDERS. BGM. 1004 (0020,020)"/>
</xsd, extension>
/xsd: simpleContent>
</xsd, complexType>
</xsd: element>
<xsd:element name ="OrderCurrencyn>
<xsd: complexType>
< xsd: simpleC06tent>
<xsd: extension base ="OrderCurrency ">
<xsd:attribute name="EDIPath" type="xsd#string">
fixed ="ORDERS. SG7.CUX. C504. 6345 (0250:010:02)"/>
</xsd, extension>
</xsd: simpleContent>
</xsd,complexType>
</xsd: element>
<xsd:element name="TotalOrderValueH>
<xsd:complexTyle>
<xsd:simpleContent>
<xsd:extension base ="decimall.. 12">
<xsd:attribute name="EDIPath" type="xsd,string">
fixed="ORDERS. MOA. C516. 5004(2010,010,02)"/>
</xsd:extension>
< / xsd:simpleContent>
</xsd:complexT~pe>
</xsd:element>
<xsd:element name="DateQualifier">
< xsd:complexType>
< xsd:simpleCohtent>
< xsd:extension base ="DateQualifier ">
<xsd:attribute name="EDIPath" type="xsd: string">
Fixed="ORDERS. DTM. C507. 2005(0030:010:01) "/>
</xsd:extension>
/ xsd: simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name ="Date">
<xsd:complexType>
<xsd:simpleContent >
<xsd:extension base ="decimal8">
< xsd:attribute name="EDIPath" type="xsd: string">
fixed=:"ORDERS. DTM. C507.2380(0030:010:02)"/>
</xsd: extension>
</xsd: simpleContent>
</xsd: complexType>
</xsd,element>
<xsd: element name ="PartyQualifier">
<xsd:complexType>
<xsd: simpleContent>
<xsd:extension base ="PartyQualifier ">
<xsd: atti'ibute name="EDIPath" type="xsd: string">
Fixed="ORDERS. SG2. NAD. 3035(0120:010)"/>
</xsd: extension>
/xsd.simpleContent>
</xsd: complexType>
</xsd: element>
<xsd. element name ="Name">
xsd: complexType>
xsd t simpleContent>
<xsd: extension base ="stringl.. 10">
<xsd: attribute name="EDIPath" type= xsd: string>
fixed="ORDERS. SG2. NAD. C080. 3036(0120:040:01)"/>
</xsd: extension>
</xsd: simpleContent>
</xsd: complexType>
</xsd:element>
<xsd:element name ="Street">
< xsd:complexType>
<xsd: simpleContent>
<xsd:extension base ="stringl.. 35">
<xsd: attribute name="EDIPath" type="xsd: string"
fixed="ORDERS. SG2. NAD. C059. 3042(0120,050:01)"/>
< / xsd: extension>
</xsd: simpleContent>
</xsd: eomplexType>
</xsd:element>
GB/T 19709--2005/ISO/TS 20625:2002
<xsd: element name ="City">
<xsd: complexType>
<xsd: simpleContent>
<xsd: extension base ="stringl.. 350>
< xsd: attribute name="EDIPath" type = xsd: string>
fixed="ORDERS. SG2. NAD. 3164(0120.060)"/>
</xsd: extension:>
</xsd. simpleContent:>
</xsd: complexType:>
</xsd:element>
< xsd: element name ="PostCode >
xsd: complexType>
<xsd: simpleContent>
<xsd:extension base ="decimal6">
<xsd:attribute name= EDIPath type= "xsd: string">
fixed ="ORDERS. SG2. NAD. 3251 (0120.080)"/>
</xsdzextension>
< / xsd: simpleContent>
</xsd: complexType:>
</xsd: element>
<xsd:element name ="VATNumber">
<xsd: complexType>
< xsd: simpleCont ent:>
<xsd:extension base ="stringl.. 35">
< xsd: attribute name="EDIPath"type="xsa:" string ">
fixed="ORDERS. SG2. SG3. RFF. C506. 1154(0160,010,02)"/>
</xsd: extension>
</xsd: simpleContent>
</xsd: complexType>
</xsd: element>
< xsd, element name="ContactName">
< xsd: complexType:>
< xsd : simpleContent>
<xsd:extens!on base ="stringl.. 15">
<xsd: attribute name="EDIPath" type="xsd, string">
fixed ="ORDERS. SG2.:SG5. CTA. C056.3413 (0220: 020:01)"/>
</xsd:extension>
</xsd: simpleCont ent>
< / xsd: complexType>
</xsd: element>
<xsd: element name ="AccountNumber":>
< xsd: complexType:>
< xsd: simpleContent>
<xsd.extension base ="decimal10">
Xsd:attribute name="EDIPath" type="xsd: string"
fixed="ORDERS. SG2. FII. C078. 3194(0140x020201)"/>
< /xsd:extension>
</ xsd:simpleContent>
</ xsd:eomplexType>
</xsd:element>
<xsd: element name ="BankName">
<xsd: eomplexType>
<xsd: simpleContent>
<xsd:extension base="stringl.. 70">
<xsd:attribute name="EDIPath" typef="xsd =" string">
fixed ="ORDERS. SG2. FII. C088. 3432 (0140:030: 07)"/>
< / xsd : extension>
< / xsd:simpleContent>
</xsd: complexType>
</xsd. element>
<xsd:element name = CommunicauonNumber >
< xsd: complexType>
<xsd :simpleContent>
< xsd:extension base="stringl.. 11">
<xsd: attribute name= "EDIPath" type="xsd z string">
fixed ="ORDERS. SG2. SGS. COM. C076.3148 (0230 s 010 2 01)"/>
</xsd:extension>
</xsd:simpleContent >
</xsd:complexType>
</xsd:element>
<xsd:element name ="CommunicationChannel">
< xsd:complexType>
<xsd: simpleContent >
<xsd:extension base ="CommunicationChannel ">
<xsd:attribute name="EDIPath"typef"xsd, string" >
fixed="ORDERS. SG2. SG5. COM. C076. 3155 (0230,010.02)"/>
</xsd:extension>
</xsd:simpldContent >
</xsd:complexType>
</xsd:element>
< xsd:element name="LinehemNumber">
< xsd:complexType>
< xsd:simpleContent>
<xsd. extension base="decimal l.. 5">
<xsd:attribute name="EDIPath" type="xsd, string">
fixed="ORDERS, sG25. LIN. 1082(0940.010)"/>
</xsd-extension>
</xsd. simpleContent>
</xsd.eomplexType>
/ xsd:element>
<xsd:element name = SupphersArtmleNumber >
< xsd:complexType>
< xsd :simpleContent >
<xsd:extension base ="stringl.. 10">
<xsd:attribute name="EDIPath" type="xsd: string"
fixed="ORDERS. SG25. LIN. C212. 7140 (0940: 030: 01)"/>
</xsd:extension>
</xsd:simpleContent>
< / xsd: complexType>
</xsd:element>
<xsd:element name ="ItemTextLinel">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base ="stringl.. 20">
<xsd: attribute name="EDIPath" type="xsd: string"
fixed ="ORDERS. SG25. IMD. C273. 7008 (0960 : 030 : 04)"/>
</xsd: extension>
< / xsd: simpleContent>
</xsd: complexType>
</xsd: element>
<xsd:element name ="ItemTextLine2">
<xsd:complexTyPe>
< xsd: simpleContent >
< xsd:extension base ="stringl.. 20">
<xsd: attribute name="EDIPath" type="xsd: string"
fixed ="ORDERS. SG25. IMD. C273. 7008 (0960:030:05)"/>
</ xsd:extension>
</xsd:simpleContent>
</ xsd:eomplexType>
</xsd:element>
<xsdtelement name ="QuantityOrdered">
< xsd:complexType>
< xsd:simpleContent>
<xsdtextension base="decimall.. 5">
<xsd: attribute name="EDIPath" typef"xsd: string">
fixed="ORDERS. SG25. QTY. C186. 6060(0970:010:02)"/>
</xsd:extension>
< / xsd: simpleContent >
</xsd:comphxType>
</xsd:element>
<xsd: element name ="MeasureUnit">
<xsd: complexType~
<xsd: simpleContent~
<xsd: extension base="MeasureUnit">
<xsd: attribute name="EDIPath" type="xsd: string">
fixed="ORDERS. SG25. QTY. C186. 6411 (0970: 010: 03) "/>
</xsd: extension>
</xsd: simpleContent>
</ xsd: complexType>
</xsd: element>
<:xsd: eleraent name ="LineItemAmount">
<xsd: complexT, ype>
< xsd: simpleContent>
<xsdsextension base ="decimsll.. 18">
<xsd:attribute name:="EDIPath" "type=xsd: string">
fixed="ORDERS. SG25. MOA. C516. 5004(0980t010:02)"/>
</xsd:extension>
</xsd: simpleContent>
</xsd:complexType>
</xsd:element>
<xsd: element name="UnitPrice>
<xsd: complexType>
< xsd:simpleContent>
<xsd:extension base="decimall.. 12n>
<xsdsattribute name="EDIPath"type="xsd:string"
fixed="lORDERS. SG25. SG27. PRI. C509.5118(1150: 010: 02) "/>
</xsd:extension>
</xsd: simpleContent>
</xsd. complexType>
</xsd: element>
<xsd: simpleType name="stringl.. 8">
<xsd: restriction base="xsd: string">
<xsd:whiteSpace value"preserve"/>
<xsdtminLefigth value"=1"/>
<xsd:maxLength value="8"/>
</xsd: restrietion>
</xsd: simpleTyp>
<xsd: simphType name="DateQualifie>
<xsd:restriction base ="xsd: string">
<xsd: enumeration value="4"/>
<xsd:enumeration value="2"/>
<xsd:whiteSpace value"preserve"/>
<xsd:minLength value=" l " / >
<xsd:maxLength value="3" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="decimal8">
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="8"/~>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name= PartyQuahher base= xsd: string">
<xsd: restriction >
<xsd :enumeration value="BY"/>
<xsd:enumeration value ="SE" / >
<xsd:whiteSpace value= preserve/>
<xsd: minLength value ="1"/>
<xsd: maxLeng./h value="3"/>
</xsd: restrictionS>
</xsd: simpleType>
<xs4.simpleType name="stringl.. 10">
<xsd .. restriction base ="xsd.. string">
<xsdswhiteSpace value= preserve/>
<xsd: minLength value="l"/>
<xsd: maxLength value="10"/>
</xsd: restriction>
</xsd s simpleType>
<xsd: simpleType ndme="stringl.. 35">
<xsd s restriction base= xsd: strmg
<xsd: whiteSpace value= preserve/>
<xsd.. trinLength value="l"/>
<xsd:/naxLength value="35"/>
</xsd s restriction>
</xsd: simpleType>
<xsd: simpleType name="decimal6">
<xsd: restriction base="xsd: decimal">
<xsd: totalDigits value="G"/>
/xsd: restrictionS>
</xsd:simpleType>
<xsd:simpleType name="decimall0">
<xsd:restriction base="xsd:decimal">
<xsd :totalDigits value="1 0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="decimalg">
< xsd: restriction base ="xsd: decimal">
<xsd:totalDigits value="9"~>
</xsd:restriction>
</xsd: simpleType>
<xsd: simpleType name="stringl.. 70">
<xsd: restriction base= xsd: string">
<xsd:whiteSpace value= preserve/>
<xsd:minLength value="l"/>
<xsd: maxLength value="70"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType, name=-"stringl.. 15">
xsd:restrictiofi base="xsd:string">
<xsd:whiteSpace value="preserve"/
<xsd:minLer/gth value="l"/>
<xsd:maxLefigth value="15"/>
</xsd:restrictidn:>
</xsd:simpleType>
<xsd:simpleType name="stringl.. 11">
<xsd: restricti06 base="xsd: strmg">
<xsd:whiteSpace valuef"preserve"/>
<xsd:minLength value="l"/>
<xsd:maxLefigth value="11"/>
</xsd:restrictidn>
</xsd:simpleTyp>
<xsd:simpleType" name="CommunicationChannel">
<xsd:restriction base ="xsd: string">
<xsd:enumeration value="TE"/>
<xsd: enumeration value="FX"/>
<xsd:whiteSpace value="preserve"~/>
<xsd: minLength value="1"/>
<xsd:maxLength value="3"/~
</xsd: restriction>
/xsd. simpleType>
<xsd:stmpleType name=OrderCurrency>
<xsdz restriction base="xsd:string">
<xsd:enumeration value=CNY"/>
<xsd:enumeration value="GBlY"/>
<xsd:whiteSpace value="preserve"/>
<xsd:minLength value="l"/~>
<xsd:maxLength value="3"/>
</xsd:restriction>
</xsd:simpleType>
<xsd.simpleType name="decimall.. 5">
<xsd:restriction base="xsd: decimal">
< xsd: totalDigits value ="5"/>
</xsd: restriction>
</xsd: simphType~
xsd:simpleType name ="stringl.. 20">
<xsd: restriction base="xsdsstring">
<xsd: whiteSpace valuer preserve/>
<xsd:minLength value="1"/>
<xsd. maxLength value="20"/>
</xsd.restriction>
</xsd:simpleType>
<xsd:simpleType name="MeasureUnit">
<xsd:restriction base="xsd, string">
<xsd:enumeratlon value="TN"/>
<xsd: enumeration value="KGM"/>
<xsd: enumeration value="GRM"/>
<xsd:enumeration value="LBR"/>
< xsd:enumeration value ="LTR"/>
<xsd:enumeration value="DZN"/>
<xsd: whiteSpace value ="preserve"/>
<xsd:minLength value="1"/>
<xsd:maxLengfh value="3"/>
</ xsd: restriction>
</xsd:simpleType>
<xsd:simpleType name="decimall.. 18">
<xsd: restriction base="xsd.decimal">
<xsdztotalDigits value="18"/>
</xsd: restriction>
</xsd:simpleType>
xsd: simpleType name ="decimal l.. 12">
<xsd:restriction base="xsd:decimal">
<xsd: totalDigits value="12"/>
</xsd: restriction>
/ xsd :simpleType>
</xsd: schema>
GB/T 19709--2005/ISO/TS 20625.2002
<Order
<xsd: noNamespaceSchen/aLocation/orderl, xsd">
<OrderNumber> 128576</OrderNumber>
<OrderDates>
<DateQualifier>4</DateQualifier>
<Date> 200106"06 </Date~
</OrderDates>
<OrderParties>
<PartyQualifier>BY</PartyQualifier>
<Name>CNMIEC</Name>
<Street>No. 5 SANLIHE ROAD</Street>
<City>BEIJINO</City>
<PostCode> 100044</PostCode>
< AccountInformaion>
<AccountNumber> 1236547890</AccountNumber>
<BankName>ICBC</BankName>
</AccountInformaion>
<VATNumber> 1234567</VATNumber>
<ContactName> ZHANGSAN</ContactName>
<Communication>
<CommunieationNumber>01068495888</CommunicationNumber>
<CommunicationChannel> TE</CommunicationChannel>
</Communication>
</OrderParties>
<OrderCurrency>CNY</OrderCurrency>
<lineltems>
<LineItemNumber> 1</LineItemNumber>
<SuppliersArtidleNumber>2001</SuppliersArticleNumber>
<ItemTextlinel~MINERAL</ItemTextlinel>
<QuantityOrdered>2</QuantityOrdered>
<MeasureUnit>TNE</MeasureUnit>
<LineltemAmount>2800</LineltemAmount
<UnitPrice> 14D0</UnitPrice>
</LineItems>
<TotalOrderValu>2800</TotalOrderValue>
</Order>
参考文献
GB/T 19709--2005/1SO/TS 20625,2002
GB/T 14814--1993信息处理文本和办公系统标准通用置标语言(SGML)
GB/Z 18803--2002基本语义注册系统
1284