Hi all, I am very new to transformation in WSO2. Actually I want to perform a transformation, suppose there are 2 XML messages. I can pass any one of them by keeping them inside Payload Factory. The format of both are as below:-
*Message 1:-* <Persons> <Names> <A>value</A> <B>value</B> <C>value</C> </Names> </Persons> *Message 2:-* <Persons> <Names> <A>value</A> <B>value</B> <C>value</C> <D>value</D> <E>value</E> <F>value</F> </Names> </Persons> Now, if the message is of format 1 (Message 1) then, choice 1 will run otherwise if its of second format(Message 2), then 2nd choice will run [I want to use choice condition to do this] . Can someone please hep me with code syntax of how can I check this. Detailed explanation would be very much appreciated for a newbie like me. Thank you, Aman.
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
