|
|
Rank: Newbie
Joined: 11/20/2009 Posts: 2
|
Hi Guys,
I'm trying to migrate a complex FlextText based data structure into an XML structure specified by a XSD schema.
In the schema I have defined several choices which allow only one out of three elements to be added. When perform the migration, I expect to retrieve an error in case the choice rule is violated, but the process finishes without any notification instead.
When validation the resulting XML document in XMLSpy, I get the error as expected and the document is found to be invalid.
So do I have to take any specific action to switch on XSD validation in MapForce?
|
|
Rank: Advanced Member
Joined: 9/9/2005 Posts: 483 Location: AT
|
Hello,
MapForce will not by itself enforce a valid target file - it is up to the mapping designer to implement the required logic in order to achieve the desired result, be that a valid file or not. However, in the output view you can validate the resulting file by clicking the 'Validate' button.
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
Just for understanding: it is simply impossible to validate document upfront before it has been created, i.e. to know just from mapping itself whether the document will be valid or not, because the result depends on particular source data.
This is why MapForce is not able to enforce validness of the mapping itself, but you can always validate the resulting document as described above.
|
|
Rank: Newbie
Joined: 11/20/2009 Posts: 2
|
OK Thank You
|
|
|
guest |