Forum Discussion

kkiran11's avatar
kkiran11
New Contributor
15 years ago

Change the XML Request tags using the Groovy Scripts.

Hi,

I have Date node
2009-12-16T00:00:00.000-06:00 
which accepts datetime now in some case i want to send the null value to this date tag i pass it like this
2009-12-16T00:00:00.000-06:00 

Now this I do manually, but I want to automate my Script and now I want to change the Tag using the Groovy script then how should I acheive it. 

Regards,
Kiran K

2 Replies

  • JPMorganChase's avatar
    JPMorganChase
    Occasional Contributor
    I see that there is no reply to this inquiry.  I am having a similar question.  How do i represent nil = true using groovy script.
  • andrew_laser's avatar
    andrew_laser
    Occasional Contributor
    JPMorganChase wrote:
    I see that there is no reply to this inquiry.  I am having a similar question.  How do i represent nil = true using groovy script.

    +1 also need to update a node value to be nil e.g.
    <ns1:Title xsi:nil="true"/>