xml ÐÎʽµÄ´æ´¢¹ý³Ì
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
create procedure [dbo].[MachiningPayedGetListByCondition]
@CustomerName varchar(50),
@CustomerPhone varchar(50),
@PactNumber varchar(50),
@Ispay bit
as
begin
set nocount on;
SELECT
dp.ID as 'MachiningPayed/@ID',
Orders.ID AS 'MachiningPayed/Order/@ID',
-- Task --
Orders.Task AS 'MachiningPayed/Order/Task/@ID',
Tasks.OrderState as 'MachiningPayed/Order/Task/OrderState',
Tasks.UpdateDate as 'MachiningPayed/Order/Task/UpdateDate',
Tasks.CustomerName as 'MachiningPayed/Order/Task/CustomerName',
Tasks.CustomerPhone as 'MachiningPayed/Order/Task/CustomerPhone',
Tasks.CellPhone as 'MachiningPayed/Order/Task/CellPhone',
Tasks.CustomerAddress as 'MachiningPayed/Order/Task/CustomerAddress',
Tasks.ForemanName as 'MachiningPayed/Order/Task/ForemanName',
Tasks.MonitorName as 'MachiningPayed/Order/Task/MonitorName',
Tasks.DesignerName as 'MachiningPayed/Order/Task/DesignerName',
Tasks.Store as 'MachiningPayed/Order/Task/Store',
Tasks.PactNumber as 'MachiningPayed/Order/Task/PactNumber',
Tasks.CreateDate as 'MachiningPayed/Order/Task/CreateDate',
Tasks.PlanDisclosureDate as 'MachiningPayed/Order/Task/PlanDisclosureDate',
Tasks.PlanHiddenCheckDate as 'MachiningPayed/Order/Task/PlanHiddenCheckDate',
Tasks.PlanMidCheckDate as 'MachiningPayed/Order/Task/PlanMidCheckDate',
Tasks.PlanEndCheckDate as 'MachiningPayed/Order/Task/PlanEndCheckDate',
-- Task End--
Orders.PactNumber AS 'MachiningPayed/Order/PactNumber',
Orders.CustomerName AS 'MachiningPayed/Order/CustomerName',
Orders.CustomerPhone AS 'MachiningPayed/Order/CustomerPhone',
Orders.CellPhone AS 'MachiningPayed/
Ïà¹ØÎĵµ£º
xsdÓëxmlºÍÀà(class)¶ÔÏóÖ®¼äµÄ»¥Ïàת»»
.
µÚÒ»£ºÍ¨¹ýÏÖÓеÄÒѾдºÃµÄxsdÀ´Éú³Éclass£¨.cs£©Îļþ¡£
ÔÚÄúVisual StudioµÄ°²×°Ä¿Â¼ÏµÄSDKv2.0BinÖÐÓиöÓ¦ÓóÌÐòxsd.exe£¨Í¨¹ýÕâ¸öÓ¦ÓóÌÐò¿ÉÒÔʹÓÃxsdÀ´´´½¨ÀàÎļþ£©¡£
¾ßÌå²Ù×÷£ºÍ¨¹ý´ò¿ªVisual Studio ÃüÁîÌáʾ£¬¿ÉÒÔÊäÈëxsdÖ¸ÁîÀ´²é¿´Ò»Ð©¾ßÌåµÄ²Ù×÷Ö¸ÁîµÄÓô¦£¬È»ºó ......
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(@"E:\´ó¶þÏÂ\xml\province.xml");
»áÌáʾ³öÏÖÒÔÏ´íÎó
http://hi.csdn.net/attachment/201005/24/0_1274703276Ld6I.gif
Âé·³¸÷λ°ïæ¿´¿´£¬Ð»Ð»ÁË ......
XmlÎļþ²Ù×÷ºÍÎļþ²Ù×÷(FileInfoÀà)
1. ÉÏ´«Îļþ
¡¡2. дXmlÎļþ
3. Îļþ¿½±´
¡¡1.¡¡//ÉÏ´«
protected void picUp_Click(object sender, EventArgs e)
{
......
MSDNÉϵĶ¨Ò壺
XML ÐòÁл¯½«¶ÔÏóµÄ¹«¹²×ֶκÍÊôÐÔ»òÕß·½·¨µÄ²ÎÊýºÍ·µ»Øֵת»»£¨ÐòÁл¯£©Îª·ûºÏÌض¨ XML ¼Ü¹¹¶¨ÒåÓïÑÔ (XSD) ÎĵµµÄ XML Á÷¡£XML ÐòÁл¯Éú³ÉÇ¿ÀàÐ͵ÄÀ࣬²¢Îª´æ´¢»ò´«ÊäÄ¿µÄ½«Æ乫¹²ÊôÐÔºÍ×Ö¶Îת»»ÎªÐòÁиñʽ£¨ÔÚ´ËÇé¿öÏÂΪ XML)¼òµ¥µÄ˵¾ÍÊǽ«Ò»¸ö¶ÔÏóת»»³ÉXMLÁ÷»òÊÇÎļþµÄ¹ý³Ì¡£
×¢ÒâÊÂÏҪÐòÁл¯µÄÀ ......