[OpenSIPS-Users] set value of XML item using variable

xaled at web.de xaled at web.de
Tue Feb 23 10:02:57 EST 2021


is there a way to directly set XML item value using variable.

It works for static values

$xml(my_doc/doc/list) = "<item>test</item>";

But something like this does not work:
$xml(my_doc/doc/list) = "<item>$var(value)</item>";

The only workaround I found it to use .val.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210223/7f4ad4c4/attachment.html>

More information about the Users mailing list