Contributions
ReadyAPI XML Creation (for Radar Live) to ignore empty Elements without Values
Hi, I'm a newbie to ReadyAPI but with lots of experience around XML and Dev. We use ReadyAPI to create XML's from Excel to fire at Radar Live. Whilst designing the 'Soap Request' XML, is there a way to only Output the XML Element if there is a value present? I have a 'multi instance' block of data but only want the blocks containing data to be built during the XML creation phase. I would like to stop below happening... <MultiInstances> <Tent_Details> <Tent_ID value="1"/> <Tent_Manufacture value="Smith"/> </Tent_Details> <Tent_Details> <Tent_ID value="2"/> <Tent_Manufacture value="Jones"/> </Tent_Details> <Tent_Details> <Tent_ID value=""/> <Tent_Manufacture value=""/> </Tent_Details> <Tent_Details> <Tent_ID value=""/> <Tent_Manufacture value=""/> </Tent_Details> </MultiInstances> Any help would be appreciated.Solved896Views0likes3Comments