Functions.XMLDocOpenString 方法 (String, __Usual) | |
Create XML document from a string.
命名空间:
XSharp.XPP
程序集:
XSharp.XPP (在 XSharp.XPP.dll 中) 版本:2.22 GA
语法 FUNCTION XMLDocOpenString(
cXMLString AS STRING,
nErrHandle OUT USUAL
) AS INT64
public static long XMLDocOpenString(
string cXMLString,
out __Usual nErrHandle
)
查看代码参数
- cXMLString
- 类型:String
Character string representing a valid XML document. - nErrHandle
- 类型:__Usual
Pass a variable by reference which receives an error handle if errors were recorded.
返回值
类型:
Int64Returns a non-zero handle for the passed string or 0 if there are not enough system resources for the parser,
or when the string does not contain valid XML code. The handle returned by this function must be used in subsequent
calls to other XMLDoc..() functions.
If the function returns 0, more information can be obtained by calling XMLDocGetErrorList(,
nErrHandle ).
备注 Invokes the XML parser engine which parsed the passed string and builds the internal tree structure.
参见