|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Validating Error on xml with xsi:nil="true" |
« View previous topic :: View next topic » |
Author |
Message
|
Hawk |
Posted: Wed Mar 30, 2005 7:43 am Post subject: Validating Error on xml with xsi:nil="true" |
|
|
Newbie
Joined: 30 Mar 2005 Posts: 4
|
Hello,
I have an incoming message with <date xsi:nil="true"/>.
In my message set date is nillable. Simply sending <date/> works. However i receive <date xsi:nil="true"/>.
When the message is validated I get an error (BIP5371)
( WBRK_BROKER.default ) Message Validation failure. Invalid member for content validation 'Closed'
Element, http://www.w3.org/2001/XMLSchema-instance:@nil, is either not defined as a member of its parent complex type or group, or has been created out of order in the logical tree, for a composition of 'Ordered Set' or 'Sequence'. The parent complex type or group has content validation of 'Closed'. The parent element is http://surf.nl/vch/berichten:date.
Modify the message set or messageflow and redeploy to the broker or modify the input message and resubmit to the broker.
The xml validates ok in any xml editor.
Can anybody help? |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 30, 2005 4:22 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Change the model you are validating against to use an Open composition instead.
Or explicitly model the attribute you are adding. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kimbert |
Posted: Thu Mar 31, 2005 12:26 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Strictly speaking, attributes in the XML Schema Instance (xsi) namespace should not be validated - this is a defect in v5. Either of Jeff's work-arounds will do the trick. I prefer the second one (add an optional attribute with name 'nil' in the XML Schema Instance namespace) because it preserves validation on the remaining content of the complex type. |
|
Back to top |
|
 |
Hawk |
Posted: Thu Mar 31, 2005 3:53 am Post subject: |
|
|
Newbie
Joined: 30 Mar 2005 Posts: 4
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|