IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

XSD validation not working in MF 2010? Options · View
Titotarantula
Posted: Friday, November 20, 2009 10:39:08 AM
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?
paul
Posted: Friday, November 20, 2009 11:21:51 AM
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.
vlad
Posted: Friday, November 20, 2009 11:42:38 AM
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.
Titotarantula
Posted: Friday, November 20, 2009 2:47:09 PM
Rank: Newbie

Joined: 11/20/2009
Posts: 2
OK Thank You
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.