Posted: Fri Jan 23, 2004 2:32 am Post subject: Error in DTD Validation
Apprentice
Joined: 23 Jan 2004 Posts: 36
I have imported a DTD into my message set after applying the XML physical layer. The root tag in XML tab properties is also set to MRM. But the input XML message is not being validated for the minOccurs constraint for attributes. DTD however clearly states that attribute is #REQUIRED.
The input node properties are set to validate with the timing Immediate. But this does not seem to help. Exception is thrown if an Element with minOccurs = 1 is missing in the input XML message. But the message is successfully parsed if the attribute with minOccurs = 1 is missing in the input XML message.
WMQI version i am using is 2.1. CSD06
The minOccurs constraint is set when the DTD is imported. I have not set the property explicitly. In short, i have not made any changes after DTD was imported.
Since the attribute is #REQUIRED, minOccurs is 1. But the validation does not occur!!
I understand you imported from a DTD where the attribute is #REQUIRED and therefore righty expect minOccurs=1.
But please confirm that after the import if you look at the message set in the control center the attribute has the the MinOccurs property correclty set to 1. In other words check the import has worked correctly.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum