Advanced User Defined Function - How to create attribute node
I have an advanced user defined function [All Values of a Context] and I'm manually filling the values for the elements of this node using result.addValue(). For all the I have some attributes also, how can I fill create and fill these attributes using the code written in the function?
The name element is created by addValue("Sandeep");
How can the length="35" be created?