XML 存储函数
在Sqlserver数据库Northwinds中创建一个存储过程,
该存储过程有两个参数,nvarchar(5)类型的@customerID 是customers表的customerID, xml类型的参数@xmlCustOrder是输出参数,存储过程将根据orders和customers 表输出条件为该customerID的客户和订单信息xml输出到@xmlCustOrder,@xmlCustOrder的xml格式如CustOrderProc2.xml
所示。
CustOrderProc2.xml
<CustomerOrders>
<Customers>
<CustomerID>ALFKI</CustomerID>
<CompanyName>Alfreds FutterkisteAbbc</CompanyName>
<Country>Germany</Country>
<Orders>
<OrderID>10643</OrderID>
<CustomerID>ALFKI</CustomerID>
<OrderDate>1997-08-25T00:00:00+08:00</OrderDate>
</Orders>
</Customers>
</CustomerOrders>
要求输入过程 ProcCustomerOrderXml2120061101245
相关问答:
<?xml version="1.0"?>
<root>
<status>433</status>
<msg>这个是汉字</msg>
<serialno>123</serialno>
</root>
如何用ASP读取 status值 ......
<XML>
<FLAG>1</FLAG>
<REASON></REASON>
<ADVERT><ADID>64</ADID><ADNAME>英皇娱乐四</ADNAME><ADCONTENT>内容一</ADCONTENT><ADT ......
<?xml version="1.0" encoding="utf-8" ?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......
string b = "";
b = System.Guid.NewGuid().ToString();//获得会话ID
//写XML
XmlDocument xml = new XmlDocumen ......