0
I’m working on a.xml file to be sent to a service. However the question is how to add a conditional in XML, IE, I have N types of coverage that will be filled in a form and not all covers will be reported. But the data will come from the database.
Follow the example below:
<hsCobertura>
<entry>
<key>$codigoTipoCobertura</key>
<value>
<cdCobertura>$codigoTipoCobertura</cdCobertura>
<isCobertura>$valorTipoCobertura</isCobertura>
</value>
</entry>
<entry>
<key>$codigoTipoCobertura</key>
<value>
<cdCobertura>$codigoTipoCobertura</cdCobertura>
<isCobertura>$valorTipoCobertura</isCobertura>
</value>
</entry>
</hsCobertura>
Your question is a little fuzzy.
– Sam
@Sam Exists as an add conditional (if or Else) in an XML tag?
– Hugo Leonardo