XML函数_LoadRunner

XML 函数

Retrieves values of XML elements found by a query
获得查询设置的XML值


格式:
int lr_xml_get_values ( <List of specifications> [, <List of optional specifications> ] [, LAST]);

解析:
List of specifications
For the following list of required specifications, use the following string format:
"Specification=value"

XML: the XML Input String to query

ValueParam: the output parameter which stores the result of the query
Query: the XML Query on the input string XML. You can specify elements or attributes.
List of optional specifications
For the following list of optional specifications, use the following string format:
"Specification=value"


SelectAll: If "yes", all elements matching the query will be processed. If "no", only the first match will be processed. Default is "no". See Multiple Query Matching

NotFound
: See Continuing on Error
LAST
A marker which indicates the end of the List of optional specifications

The lr_xml_get_values function queries the XML input string XML for values matching the Query criteria.

The ValueParam specification must be a parameter, and not a string. When a parameter with the name ValueParam already exists, then its value will be overwritten.

Retrieves values of XML elements found by a query
获得查询设置的XML值

Sets the values of XML elements found by a query
设置查询设置的XML值

Extracts XML string fragments from an XML string
从XML字符串截取部分字符

Deletes fragments from an XML string
删除部分XML字符串

Replaces fragments of an XML string
替换部分XML字符串

Inserts a new XML fragment into an XML string
插入一个新的XML片断到XML字符串里

Verifies that XML values are returned by a query
通过查询返回XML的校验值

Applies Extensible Stylesheet Language (XSL) Tranformation to XML data
 应用XSL翻译成XML数据


posted on 2006-09-18 13:11  锤子  阅读(1156)  评论(0)    收藏  举报

导航