Using the IF/ELSE condition in XML

Please I would like to know how to use the IF/ELSE condition in XML.
Examples will be highly appreciated.

Thank you
Lawrence