views:

43

answers:

0

Hi guys

I've mapped one XSD schema to another one using Altova MapForce and generated Java classes from it. So far so good, Java works nice.

However I've noticed that the mapper is not validating the maximum length of strings in input XML.

For example we have an element which is a type of String with following constraint :

<xsd:restriction base="xsd:string">
 <xsd:maxLength value="70" />
</xsd:restriction>

But if my input file contains in name field string with more than 69 chars, nothings happen and mapper simply copies the element content to target element.

Any idea why is it so?

related questions