XMLHelperCreateXmlDocument Method |
创建一个XML文档
Namespace: Slickflow.Engine.UtilityAssembly: Slickflow.Engine (in Slickflow.Engine.dll) Version: 1.5.8.0 (1.5.8.0)
Syntaxpublic static bool CreateXmlDocument(
string xmlFileName,
string rootNodeName,
string version,
string encoding,
string standalone
)
Parameters
- xmlFileName
- Type: SystemString
XML文档完全文件名(包含物理路径) - rootNodeName
- Type: SystemString
XML文档根节点名称(须指定一个根节点名称) - version
- Type: SystemString
XML文档版本号(必须为:"1.0") - encoding
- Type: SystemString
XML文档编码方式 - standalone
- Type: SystemString
该值必须是"yes"或"no",如果为null,Save方法不在XML声明上写出独立属性
Return Value
Type:
Boolean成功返回true,失败返回false
See Also