FC_XmlSetElementValue Rules and Constraints

Rules and Constraints for Setting XML Values

Comply with the following constraints:

  • The execution of the function or the search of the specified element in the buffer of type XmlItems is a time-consuming process and can take up to several milliseconds. To help prevent other processes from being blocked by this function, create a separate task with low priority (>24) for it. In addition, consider whether the watchdog for this task may be disabled to avoid watchdog exceptions during the parsing process. For more information, refer to the chapter System and Task Watchdogs in the Programming Guide of your controller.

  • Depending on the size of the buffer XmlItems and the position where the element is stored, the execution time of this function can vary from one call to another. Consider this during the commissioning of your application.

  • The function is designed to process exactly one element. If your buffer contains more than one element matching the XPath expression, it processes the element that is found first.