???? ????? ????? ??????? ??? ??? ???????? XSD ????? ??????? ?? Visual Studio .NET XML ???? ????

?????? ????????? ?????? ?????????
???? ???????: 325695 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

???????

??? ?????? ??? ???? ???? ????? ???? XML (XSD) ????? ??????? ?? Visual Studio .NET ? ???? ?????? ???? XML ?? ??? ????? ?? ???? "???? ??????" ?? ?? ????? ????? ????? ??????? ?? ????? ??? ???????? ?? "???? XML":
??? ????? ?? ?? ??? ??????? XML ?????? ? ?????? ??? ???? ?? ???? ??? DataView. ?? ???? ?? ???? ??? ?????? (TableName) ?????? ?????? ?? ??????? ?????????

?????

??? ??? ???? XSD ???? ?? ???? .xml. ??? ????? Visual Studio .NET ???????? ??? ????. ??? ????? ??????? ??? ???? .xml ??? ???? ????? XML ???????? ???? ???? ???? ?????? ???? XML ????? ?? ???? "???? ??????" ??? ?????? ??? ???? ??????? ?? Visual Studio .NET. ?????? ???? XML ?? Visual Studio .NET ????? ????????? ???? ADO.NET ???????? ????????? ??? ???? ????? XML. ?? ???? ????? ????????? ???? ADO.NET ?? ????? ?????? ????? ??????? ?? ????? RTM ?? Microsoft .NET Framework.

????

????? ????? ?? ??? ??????? ???? ?? ???? .xsd ???? ????? ?? ???? "???? ???? XML .NET Studio ?????". ???? Visual Studio .NET XML ???? ???? ????? ???? ?????? XSD ????? ??????? ???? ????.

?????

????? ??? ?????? ??? ???????.

??????? ????

????? ????? ????? ????? ?????? ????? ???? ??????? ???????:
  1. In Notepad, paste the following code in a new file:
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    	<xs:element name="OrdersInventoryData" type="OrdersInventoryDataType" />
    	<xs:complexType name="ItemType">
    		<xs:sequence>
    			<xs:element name="id" type="xs:string" />
    			<xs:element name="qty" type="xs:integer" />
    		</xs:sequence>
    	</xs:complexType>
    	<xs:complexType name="OrderType">
    		<xs:sequence>
    			<xs:element name="OrderId" type="xs:string" />
    			<xs:element name="CustomerId" type="xs:string" />
    			<xs:element name="Item" type="ItemType" maxOccurs="unbounded" />
    		</xs:sequence>
    	</xs:complexType>
    	<xs:complexType name="InventoryType">
    		<xs:sequence>
    			<xs:element name="Item" type="ItemType" maxOccurs="unbounded" />
    		</xs:sequence>
    	</xs:complexType>
    	<xs:complexType name="OrdersInventoryDataType">
    		<xs:sequence>
    			<xs:element name="Order" type="OrderType" maxOccurs="unbounded" />
    			<xs:element name="Inventory" type="InventoryType" maxOccurs="unbounded"/>
    		</xs:sequence>
    	</xs:complexType>
    </xs:schema>
    					
  2. ?? ???? ????? ???? OrderInventory.xml ??? ????? ?????? ????? ??. ???? ????? ????? ??????? ??? ?? ?? "?????" ? "??????? ??????? ????? ?????? OrdersInventoryData ?? ???? ???? ???? ???? ?? complexType ItemType (???? ???? ???? ?? ?????? ????? - ?????? ???).
  3. ?? Visual Studio .NET ? ???? ???? ?? ????? Microsoft Visual Basic .NET ?? Microsoft Visual C# .NET ????? ? ??? ????? ????? Windows ?? ????? "????? ???? ??????".
  4. ????? ????? XML OrderInventory.xml ???? ??? ??????? ???? ??? ???????.
  5. ?? "?????? ??????" ???? ????? ??????? ???? OrderInventory.xml. ??? ??? ????? ??? ???? ?? XML ?? ??????? ??????? ?? ???? ???? XML.
  6. ??????? ??? ????? ??? ???????? ?? ???? "Designer XML". ???? ????? ????? ???????:
    ??? ????? ?? ?? ??? ??????? XML ?????? ? ?????? ??? ???? ?? ???? ??? DataView. ?? ???? ?? ???? ??? ?????? (????) ?????? ?????? ?? ??????? ?????????
    ???? ???? ??? ??? .xml ???? ?????? ???? XML ??? ????? ?? ???? ???? ????. ???? ??? ??????? ?? ??????? ????? ?? XML ????? ????? ?? ??? ???? XSD. ????? ??? ??? ???? Visual Studio .NET XML ???? ???? ?????? XML, ??? ????? ????? ????????? ADO.NET ???? ?????? ???? ???? ????? XML. ?? ????? ????????? ?????? ADO.NET ???? XML complexType ??? ??????? ????? ?????? ?? ????? ?????? ??? ???? ???? ???? ???? ???? ?? ?????? ????? - ?????? ?? ????. ?? ???? ????? ?? ????? ???? ????complexType ItemType ???? ????? ????? (complexType OrderType) ?????? ????? (complexType InventoryType). ??? ?? ??? ????? ??? ?? ????? ?? ??? ????? ????????? ???? ADO.NET ?? ????? RTM ?? Microsoft .NET Framework.
  7. ?? ?????? ???? "Designer XML".
  8. ?? "?????? ??????" ????? ????? OrderInventory.xml OrderInventory.xsd. ?????? ????? ???? ??? ?????? ?????? ??? ????? ?? ???? ??? ????? ???????.
  9. ?? "?????? ??????" ???? ????? ??????? ???? OrderInventory.xsd. ??? ??? ????? ??? ???? ?? XML ?? ??????? ??????? ?? ???? ???? ???? XML. ??????? ??? ????? ????? "????" ????? ??? ???? ?????? ???? ????.

?????

?? ????? ????? ????? ????? "?? ???? ??? ?????? (TableName) ?????? ?????? ?? ??????? ?????????" ??? ??????? ????? XML ?? Visual Studio .NET ?? ?? ?????? ???????? Xsd.exe. ????? ?? ?????????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
325696???? ????? ??? ??? ??? ?????? XML ?????? ??????? ?? "Visual Studio .NET XML ????"

???????

???? ???????: 325695 - ????? ??? ??????: 18/????? ??????/1427 - ??????: 3.4
????? ???
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Express Edition
  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
  • Microsoft Visual Studio .NET 2002 Enterprise Architect
????? ??????: 
kbmt kbprb KB325695 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????325695

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com