Good afternoon,
In my workflow, I set an attribute parameter with type Resource Element and the value of attribute is a file xml.
And i got a problem to use file xml in my workflow, i would like to use theses informations from file xml to store in variable..
Example : in file xml, i put some information about number VLAN ID, and in my script task, i would like know how is use with myvariable.portgroup[0].spec.vlanId ?
Best Regards.
Like this:
var myXml = new XML(resource.getContentAsMimeAttachment().content);
Then you can access to your nodes like this:
myXml.node.subnode
Google for e4X to get the full syntax.
Like this:
var myXml = new XML(resource.getContentAsMimeAttachment().content);
Then you can access to your nodes like this:
myXml.node.subnode
Google for e4X to get the full syntax.
Thank you very much. Finally I understand what do you mean,but i misunderstood with resource in var myXml = new XML(resource.getContentAsMimeAttachment().content);
Because i used an another input for ResourceElement., After changing, it's works well !!