Click or drag to resize
XMLHelperCreateOrUpdateXmlAttributeByXPath Method
依据匹配XPath表达式的第一个节点来创建或更新它的属性(如果属性存在则更新,不存在则创建)

Namespace: Slickflow.Engine.Utility
Assembly: Slickflow.Engine (in Slickflow.Engine.dll) Version: 1.5.8.0 (1.5.8.0)
Syntax
C#
public static bool CreateOrUpdateXmlAttributeByXPath(
	string xmlFileName,
	string xpath,
	string xmlAttributeName,
	string value
)

Parameters

xmlFileName
Type: SystemString
XML文档完全文件名(包含物理路径)
xpath
Type: SystemString
要匹配的XPath表达式(例如:"//节点名//子节点名
xmlAttributeName
Type: SystemString
要匹配xmlAttributeName的属性名称
value
Type: SystemString
属性值

Return Value

Type: Boolean
成功返回true,失败返回false
See Also