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
   	 );