ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XMNLSC parsing error with empty tags, and required

Post new topic  Reply to topic
 XMNLSC parsing error with empty tags, and required « View previous topic :: View next topic » 
Author Message
snredditch
PostPosted: Wed Nov 25, 2009 8:06 am    Post subject: XMNLSC parsing error with empty tags, and required Reply with quote

Newbie

Joined: 25 Nov 2009
Posts: 2

I'm having real problems trying to validate some XML against a Message Definition in a message flow - the XML validation is being carried out in a "Reset Content Descriptor" node, with validation switched on.

When the XML is validated against an XSD file - the broker message definition was generated from this XSD - using Rational Software Architect, Firefox, Internet Explorer etc. it validates OK, in the broker the "Reset Content Descriptor" node throws the following expection :

BIP5025E: XML schema validation error ''cvc-complex-type.4: Attribute "number" must appear on element "_EMID"

Any help you can give me will be very much appreciated.

Details of XML and schema follow below :

XML being parsed

<control>
.....
<_EMID/>
.....
</control>


XSD file used to generate Message

<xs:element name="control">
<xs:complexType>
<xs:sequence>
.....
.....
<xs:element maxOccurs="10" minOccurs="0" name="_EMID">
<xs:complexType>
<xs:attribute use="required" name="number"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>


- Message Broker 6.1 running under Windows 2000


Last edited by snredditch on Thu Nov 26, 2009 1:27 am; edited 1 time in total
Back to top
View user's profile Send private message
cool_ziv
PostPosted: Wed Nov 25, 2009 10:18 am    Post subject: Reply with quote

Newbie

Joined: 24 Nov 2009
Posts: 8

The validation error clearly suggests that there should be an attribute 'number' for the element '_EMID'.
In your XML message it is missing.
So
If this XML message is the actual format that you are expecting then modify the XSD and update the message set.

Try: If you are just testing the flow try( before modifying message set) with the XML message

<control>
.....
<_EMID number = "" />
.....
</control>
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Nov 26, 2009 1:24 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
using Rational Software Architect, Firefox, Internet Explorer etc. it validates OK
Web browsers do not validate XML messages - they only check that they are well-formed XML.

The title of the post is incorrect - you are using XMLNSC, not XMLNS. Not sure whether you can change it now...maybe an administrator can.
Back to top
View user's profile Send private message
snredditch
PostPosted: Thu Nov 26, 2009 1:46 am    Post subject: Reply with quote

Newbie

Joined: 25 Nov 2009
Posts: 2

[cool_ziv]
Quote:
The validation error clearly suggests that there should be an attribute 'number' for the element '_EMID'....modify the XSD and update the message set.


Thanks for your response, I'll look into where the XSD file is being used, and to the possibility of changing it.

[kimbert]
Quote:
Web browsers do not validate XML messages - they only check that they are well-formed XML.


OK, thanks, I've learnt something new today. Does this apply to Rational Software architect? I thought that the validation option built into the XML editor would validate the file against the schema?

Quote:
The title of the post is incorrect - you are using XMLNSC, not XMLNS. Not sure whether you can change it now...maybe an administrator can.

Thanks again. I've amended the title, and took the opportunity to add the version of the Message Broker and operating system as I realise I should have quoted this in the first place.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XMNLSC parsing error with empty tags, and required
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.