C# Class Weed.OPS.XItem

Inheritance: IXNode
显示文件 Open project: noear/Weed3

Protected Properties

Property Type Description
_NewText string

Public Methods

Method Description
CDATA ( ) : XItem

去除代码

Contains ( string name ) : bool
Format ( ) : string

以Text为模板,进行格式化 ------------------------ 当以模板引擎的形式时,使用

Set ( XDom data ) : XItem
Set ( string key, string val ) : XItem
ToString ( ) : string
ToXml ( ) : string
XItem ( ) : System
XItem ( string name ) : System
XItem ( string name, string text ) : System
this ( string name ) : XItem

获取子项,如果不存在,则自动添加一项

Private Methods

Method Description
EscapeText ( ) : string
UnescapeText ( string text ) : void
WriteXml ( StringBuilder sb ) : void

Method Details

CDATA() public method

去除代码
public CDATA ( ) : XItem
return XItem

Contains() public method

public Contains ( string name ) : bool
name string
return bool

Format() public method

以Text为模板,进行格式化 ------------------------ 当以模板引擎的形式时,使用
public Format ( ) : string
return string

Set() public method

public Set ( XDom data ) : XItem
data XDom
return XItem

Set() public method

public Set ( string key, string val ) : XItem
key string
val string
return XItem

ToString() public method

public ToString ( ) : string
return string

ToXml() public method

public ToXml ( ) : string
return string

XItem() public method

public XItem ( ) : System
return System

XItem() public method

public XItem ( string name ) : System
name string
return System

XItem() public method

public XItem ( string name, string text ) : System
name string
text string
return System

this() public method

获取子项,如果不存在,则自动添加一项
public this ( string name ) : XItem
name string 项名称
return XItem

Property Details

_NewText protected_oe property

protected string _NewText
return string