none
求助,怎样将这个schema写到XML里呢,使用C#。谢谢大家! RRS feed

  • 问题

  • <?xml version="1.0" encoding="UTF-8" ?>
    <!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Harry Poulter (CDM Inc.) -->
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    	<xs:element name="EcoCATData">
    		<xs:annotation>
    			<xs:documentation>Data Sent to the mapping tool</xs:documentation>
    		</xs:annotation>
    		<xs:complexType>
    			<xs:sequence>
    				<xs:element name="RequestID" type="xs:long" minOccurs="0" />
    				<xs:element name="PLSSString" type="xs:string" minOccurs="0" />
    				<xs:element name="WetlandReviewRequired" type="xs:boolean" minOccurs="0" />
    				<xs:element name="CallbackURL" type="xs:string" minOccurs="0" />
    				<xs:element name="ProjCode" type="xs:string" minOccurs="0"/>
    				<xs:element name="County" type="xs:string" minOccurs="0"/>
    				<xs:element name="City" type="xs:string" minOccurs="0"/>
    				<xs:element name="DateSubmitted" type="xs:dateTime" minOccurs="0"/>
    				<xs:element name="ProjectStatus" type="xs:string" minOccurs="0"/>
    				<xs:element name="ProgramAssignedTo" type="xs:string" minOccurs="0"/>
    				<xs:element name="ApplicantName" type="xs:string" minOccurs="0"/>
    			</xs:sequence>
    		</xs:complexType>
    	</xs:element>
    </xs:schema>
    这个是我从后缀名为xsd文件中粘过来的,非常感谢!!
    2010年11月22日 5:51

答案