本人初学C#,请各位高手指点,最好附相关源码关于C#从数据库读取数据,放到固定的XML架构文件,并将架构文件放至MSMQ中附XML架构源码:
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by () -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="compal852">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="custref_code"/>
<xs:element name="customer_alias"/>
<xs:element name="product_alias"/>
<xs:element name="product_qty"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by () -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="compal852">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="custref_code"/>
<xs:element name="customer_alias"/>
<xs:element name="product_alias"/>
<xs:element name="product_qty"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
解决方案 »
- 关于C# 和sql server的安装程序问题
- 关于OpenfileDialog的一个简单的问题
- 二进制文件存储数据的问题
- 需要一个把主键盘的回车键改成字母z,把小键盘的确定键改成a的控制台程序。
- 那么多的get set有什么用?(只有10分了)
- 为什么有的时候点完登陆按钮后页面不跳转呢?
- ClickOnce可以自动生成桌面图标吗
- 想在主程序中定义一个常量,其它class也可使用,如何做?
- C#开发IIS上的ISAPI 筛选器?
- 帮忙解决XML中CreateElement的使用,谢谢!!
- 水晶报表--动态数据源--涉及两个表! 第一问题已解决,在CrystalReport中显示两个表,怎样处理呀?
- 如何动态改变FRAME得大小、外观。java就行。
如果文件不是很大,可以考虑当字符串处理(不提倡这方法),也可以读到一个数组内,你都试试吧