Xml|xml C # Operations XML Preliminary (8)
The fourth chapter: General XML Processing method (2)
In the previous article, we provided a class to manipulate the XML file, which provides an example of the application, which comes from the processing of the message data in an XML message book written in a boring time.
The code is as follows: using System;
Using System.IO;
Using System.Data;
Using System.Diagnostics;
Using XmlBook.Com.Sem.Tools; This contains the class provided in the previous article
Namespace Xmlbook.component
{
<summary>
Copyrights: Copyright by SEM IT Department
Version: 0.0.1
File: XmlBook.Component.MdlDataMange.cs
Objective: Message data related operations
Author: Owaning @2005-04-09
Email: outrace@soueast-motor.com
Modify:
</summary>
public class Mdldatamanage
{
#region Private Members
private string strid = null;
private string strName = null;
private string strsex = null;
private string stremail = "no email";
private string strpage = "no page";
private string strqq = "No QQ";
private string strsubject = null;
private string strcontent = null;
private string strreply = "no reply";
private string strfilter = null;
#endregion
#region Public Members
<summary>
Name
</summary>
public string StrName
{
Get{return This.strname;}
Set{this.strname = value;}
}
<summary>
Gender
</summary>
public string Strsex
{
Get{return This.strsex;}
Set{this.strsex = value;}
}
<summary>
Mailbox
</summary>
public string Stremail
{
Get{return This.stremail;}
Set{this.stremail = value;}
}
<summary>
Home
</summary>
public string Strpage
{
Get{return This.strpage;}
Set{this.strpage = value;}
}
<summary>
OICQ number
</summary>
public string STRQQ
{
Get{return This.strqq;}
SET{THIS.STRQQ = value;}
}
<summary>
Theme
</summary>
public string Strsubject
{
Get{return This.strsubject;}
Set{this.strsubject = value;}
}
<summary>
Content
</summary>
public string strcontent
{
Get{return this.strcontent;}
Set{this.strcontent = value;}
}
<summary>
Reply
</summary>
public string strreply
{
Get{return this.strreply;}
set{this.strreply = value;}
}
<summary>
ID number
</summary>
public string Strid
{
Get{return THIS.S