Forum Discussion
UnitTesters
11 years agoContributor
Hi
Does anyone have an ideas on this please?
The basic structure of my xml is below
<App>
<Address1>
<Name>Unit</Name>
</Address1>
<Address2>
<Name>Unit2</Name>
</Address2>
<Address3>
<Name>Unit3</Name>
</Address3>
</App>
but where my issues lies is that for example if I am only provided with Address1 and Address2 the Groovy script is taking the Address3 block an moving before Address1 so I end up with the below I am not sure if the issue is with the groovy script I am using or lies elsewhere
<App>
<Address3/>
<Address1>
<Name>Unit</Name>
</Address1>
<Address2>
<Name>Unit2</Name>
</Address2>
</App>
any help would be greatly appreciated
Does anyone have an ideas on this please?
The basic structure of my xml is below
<App>
<Address1>
<Name>Unit</Name>
</Address1>
<Address2>
<Name>Unit2</Name>
</Address2>
<Address3>
<Name>Unit3</Name>
</Address3>
</App>
but where my issues lies is that for example if I am only provided with Address1 and Address2 the Groovy script is taking the Address3 block an moving before Address1 so I end up with the below I am not sure if the issue is with the groovy script I am using or lies elsewhere
<App>
<Address3/>
<Address1>
<Name>Unit</Name>
</Address1>
<Address2>
<Name>Unit2</Name>
</Address2>
</App>
any help would be greatly appreciated
Related Content
- 7 years ago
Recent Discussions
- 3 hours ago