Share this page

# XML attributes

VuGen contains support for attributes. You can use a simple expression to manipulate attributes of XML elements and nodes, just as you can manipulate the elements themselves. You can modify the attribute or only attributes with specific values.

In the following example, lr_xml_delete deletes the first cubicle element with the name attribute.

    Example:
    lr_xml_delete("Xml={ParamXml}",
                   "Query=//cubicle/@name",
                    "ResultParam=Result",
                    LAST
        		);

In the next example, lr_xml_delete deletes the first cubicle element with a name attribute that is equal to Paul.

    Example:
    lr_xml_delete("Xml={ParamXml}",
             "Query=//cubicle/@name="Paul",
            "ResultParam=Result",
             LAST
       	 );

https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 26.1 All View Local Help Center View Online Help Center Version: