XMLHelperCreateXmlNodeByXPath Method |
依据匹配XPath表达式的第一个节点来创建它的子节点(如果此节点已存在则追加一个新的同名节点
Namespace: Slickflow.Engine.UtilityAssembly: Slickflow.Engine (in Slickflow.Engine.dll) Version: 1.5.8.0 (1.5.8.0)
Syntaxpublic static bool CreateXmlNodeByXPath(
string xmlFileName,
string xpath,
string xmlNodeName,
string innerText,
string xmlAttributeName,
string value
)
Parameters
- xmlFileName
- Type: SystemString
XML文档完全文件名(包含物理路径) - xpath
- Type: SystemString
要匹配的XPath表达式(例如:"//节点名//子节点名 - xmlNodeName
- Type: SystemString
要匹配xmlNodeName的节点名称 - innerText
- Type: SystemString
节点文本值 - xmlAttributeName
- Type: SystemString
要匹配xmlAttributeName的属性名称 - value
- Type: SystemString
属性值
Return Value
Type:
Boolean成功返回true,失败返回false
See Also