Sort XML child nodes by date field in Groovy Script
def body=”’ <PerPerson> <employmentNav> <EmpEmployment> <jobInfoNav> <EmpJob> <event>10206</event> <userId>abc123</userId> <eventReason>RH</eventReason> <startDate>2020-10-05T00:00:00.000</startDate> </EmpJob> <EmpJob> <event>10186</event> <userId>abc123</userId> <eventReason>RL</eventReason> <startDate>2020-03-11T00:00:00.000</startDate> </EmpJob> <EmpJob> <event>10203</event> <userId>abc123</userId> <eventReason>HN</eventReason> <startDate>2019-12-16T00:00:00.000</startDate> </EmpJob> <EmpJob> <event>10190</event> <userId>abc123</userId> <eventReason>Z1</eventReason> <startDate>2020-06-13T00:00:00.000</startDate> </EmpJob> …
Sort XML child nodes by date field in Groovy Script Read More »