C# Class voice_card.helper.XmlFile

Exibir arquivo Open project: DuBin1988/newsellinggas Class Usage Examples

Public Methods

Method Description
XmlFile ( string uri ) : System

xml文件名,加载xml文件

getElement ( string parentName, string childName ) : System.Xml.Linq.XElement

根据父节点名,子节点名找到子节点,否则返回null

getElementes ( string parentName, string childName ) : List
getProperty ( string tagName, string propertyName ) : string
getProperty ( string parentTagName, string childTagName, string propertyName ) : string

根据父节点名,子节点名,子节点属性,找到属性值,否则返回空

Method Details

XmlFile() public method

xml文件名,加载xml文件
public XmlFile ( string uri ) : System
uri string
return System

getElement() public method

根据父节点名,子节点名找到子节点,否则返回null
public getElement ( string parentName, string childName ) : System.Xml.Linq.XElement
parentName string
childName string
return System.Xml.Linq.XElement

getElementes() public method

public getElementes ( string parentName, string childName ) : List
parentName string
childName string
return List

getProperty() public method

public getProperty ( string tagName, string propertyName ) : string
tagName string
propertyName string
return string

getProperty() public method

根据父节点名,子节点名,子节点属性,找到属性值,否则返回空
public getProperty ( string parentTagName, string childTagName, string propertyName ) : string
parentTagName string
childTagName string
propertyName string
return string