C # to XML operations: A class that processes XML files (2)

Source: Internet
Author: User
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



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.