Author |
Message
|
sac063 |
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.
Can somebody help me out of this ??
 |
|
Back to top |
|
 |
wooda |
Posted: Fri Jan 23, 2004 2:50 am Post subject: |
|
|
 Master
Joined: 21 Nov 2003 Posts: 265 Location: UK
|
Which version are you using ? 2.1 or 5.0?
Are you saying that the minOccurs propery for the attribute is set in the message after the import but no validation is taking place ? |
|
Back to top |
|
 |
sac063 |
Posted: Fri Jan 23, 2004 2:59 am Post subject: |
|
|
Apprentice
Joined: 23 Jan 2004 Posts: 36
|
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!! |
|
Back to top |
|
 |
wooda |
Posted: Fri Jan 23, 2004 3:14 am Post subject: |
|
|
 Master
Joined: 21 Nov 2003 Posts: 265 Location: UK
|
Ok.
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. |
|
Back to top |
|
 |
sac063 |
Posted: Fri Jan 23, 2004 3:17 am Post subject: |
|
|
Apprentice
Joined: 23 Jan 2004 Posts: 36
|
Yes zanda.
I have checked the property.
The import was worked correctly. |
|
Back to top |
|
 |
sac063 |
Posted: Mon Jan 26, 2004 10:37 pm Post subject: |
|
|
Apprentice
Joined: 23 Jan 2004 Posts: 36
|
No breakthrough on this one.
Does validation work for attributes at all. Ones that have minOccurs constraint set i mean !!!! |
|
Back to top |
|
 |
kimbert |
Posted: Tue Jan 27, 2004 8:27 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 Location: Southampton
|
This sounds like a defect - probably best to contact IBM support. |
|
Back to top |
|
 |
|