I am not sure how to put a tag based on some condition.
Eg. My input xml would look like:
<root>
<data>
<Latitude>-37 47 32</Latitude>
<Longitude>144 58 5</Longitude>
<Direction></Direction>
<Type>Blackspot</Type>
<Speed> </Speed>
</data>
</root>
In my output XML I want to add some tag based on if I have “Blackspot” as data under the tag <Type> in my input XML.
Any suggestions on how it could be achieved.