Mapping of optional elements from one schema to another - not quite right ?
89418Jul 5 2006 — edited Oct 30 2007Hi,
If I use the mapping tool to map between schemas I get what I believe to be incorrect handling of optional elements.
I know there are many ways to handle optinality. In my case I have elements which are minOccurs="0" and would expect those elements to be omited from any transformation if they're not present in the source xml.
e.g, if element SURNAME is minOccurs="0" and is not present in the source XML, the default mapping is to generate an empty tag, <SURNAME/>, rather than missing it out.
Is there a way to change the behaviour of the mapping tool ?
R