XmlHelperGetValue Method (String) | Helper帮助文档 |
获取指定XPath表达式节点的值
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public string GetValue( string xPath )
Public Function GetValue ( xPath As String ) As String
public: String^ GetValue( String^ xPath )
member GetValue : xPath : string -> string
Parameters
- xPath
- Type: SystemString
XPath表达式, 范例1: @"Skill/First/SkillItem", 等效于 @"//Skill/First/SkillItem" 范例2: @"Table[USERNAME='a']" , []表示筛选,USERNAME是Table下的一个子节点. 范例3: @"ApplyPost/Item[@itemName='岗位编号']",@itemName是Item节点的属性.
Return Value
Type: String[Missing <returns> documentation for "M:HD.Common.XmlHelper.GetValue(System.String)"]
See Also