This script has been created for working needs. It creates UML sequence diagram from JSON description of scenario. It supposed that JSON itself will be created from XML description of use-case.
Here is the example of script output:

And
script itself with
example.