06-17-2009 3:56 PM
Experts,
Is it possible to make a xml tag as optional ?
EX:
<ACTIVIDADEGROUP>
<tt:loop ref="ACTIVIDADEGROUP">
<ACTIVIDADE>
<ORGANICA tt:value-ref="ORGANICA"/>
<FUNCIONAL tt:value-ref="FUNCIONAL"/>
<PRO_MED tt:value-ref="PRO_MED"/>
<CODACTIVIDADE tt:value-ref="CODACTIVIDADE"/>
<DESIG_ACTIVIDADE tt:value-ref="DESIG_ACTIVIDADE"/>
</ACTIVIDADE>
</tt:loop>
can i make tag "ORGANICA" optional ? i want that if i dont fill any value this tag dont appear in xml output.
Best regards
06-17-2009 6:42 PM
In your example:
<ORGANICA tt:value-ref="ORGANICA" minOccurs=0 />
The best place for XML and HTML information is http://www.w3schools.com
06-17-2009 6:42 PM
In your example:
<ORGANICA tt:value-ref="ORGANICA" minOccurs=0 />
The best place for XML and HTML information is http://www.w3schools.com
06-17-2009 6:51 PM
Hi Ricardo,
Try using this ST commands.
<tt:cond>,<tt:check>,<tt:skip>
Regards,
Lakshman.