C# Xml中映射为类数据结构(报文)
[System.Runtime.Serialization.DataMemberAttribute()]
public Information Archive {
get {
return this.archiveField;
}
set {
this.archiveField = value;
}
}
[System.Xml.Serialization.XmlAttributeAttribute()]
[System.Runtime.Serialization.DataMemberAttribute()]
public string Xmlns {
get {
return this.xmlnsField;
}
set {
this.xmlnsField = value;
}
}
【[System.Xml.Serialization.XmlAttributeAttribute()]】描述该属性为XML节点属性。
相关文档:
C#与Flash交互 (转自小磊在线)
C#与Flash交互
前段日子公司要求做一个C#与Flash交互的东西,用来C#与短信猫通讯将数据传到Flash上显示与操作的应用。
第一步C#添加组件
打开VS2005-工具-选择工具箱项-COM组件-选择Shockwave Flash Object-确定
添加好组件往场景上拖放,如果提示注册需求注册
c# 注册控件-在运行输 ......
用c#给PDA做了一个PC端的通讯程序,需要保存两个参数。用Delphi时,是保存在ini文件中,c#读写XML比较方便,就用xml文件来保存了。
class CXmlClass
{
private string XmlFilePath;
/// <summary>
/// 下载到PDA的TXT文件路径
/// </summary>
......
本文系转载,谨向转载处空间拥有者及源出处文章作者表示感谢!
转载处:http://henry19890701.javaeye.com/blog/481462
源出处:http://www.ziliaonet.com/tech/netprogramme/XML/200605/69398.html
在做一般的XML数据交换过程中,我更乐意传递XML字符串,而不是格式化的XML Document。这就涉及到XML字符串和Xml Docume ......