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 » XML Validator Node Issue

Post new topic  Reply to topic
 XML Validator Node Issue « View previous topic :: View next topic » 
Author Message
satya22777
PostPosted: Thu Feb 21, 2008 7:38 am    Post subject: XML Validator Node Issue Reply with quote

Apprentice

Joined: 03 Apr 2006
Posts: 31

Hello All,

I'm using WMB v6.1 on Windows 2003 server platform along with WMQ v6. My flow looks like

FileInputNode-->ComputeNode-->XmlValidatorNode--->MQOutputNodes
One MQOutputNode is connected to the Invalid termianl of XmlValidatorNode and another MQOutputNode is connected to the Out terminal.

I installed XmlValidatorNode using IA9A package.

In the compute node I'm mapping '.CSV' file into XMLNS Format.

I've configured XmlValidatorNode like,

file://"namespace1" file:///path of the .xsd file.

in xsi:schemaLocation property.

I'm getting error like
Quote:
Error:CHARACTER:Error: [1:289] cvc-elt.1: Cannot find the declaration of element 'pidx:Invoice'.


I tried to validate the output xml file in XMLSpy it is validating perfectly.

but always the message is going to the invalid terminal. i tried several times.

can anybody help me in working with this node.

Thanks in advance.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Feb 21, 2008 7:52 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You don't need the XMLValidator node in Broker v6.1.

The XMLNSC Parser will validate against the schema for you.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Feb 21, 2008 10:36 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Jeff said:
Quote:
The XMLNSC Parser will validate against the schema for you.
...and it will use a lot less CPU.
Back to top
View user's profile Send private message
satya22777
PostPosted: Thu Feb 21, 2008 10:36 am    Post subject: Reply with quote

Apprentice

Joined: 03 Apr 2006
Posts: 31

Hi Jeff,

Thanks for your response. I have the below questions to clarify regading validation against XSD,

How Can the schema be provided externally (i.e without creating message sets so that I can dynamically use the solution)?.

What level of validation does XMLNS solution provide? Does it error out on first encounter of mismatch or does it provide a list of errors?


Thanks in adavnce.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Feb 21, 2008 11:08 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
How Can the schema be provided externally (i.e without creating message sets so that I can dynamically use the solution)?.
You can create one message set per schema, and change the Message Set property to select which one you validate against.
Quote:
What level of validation does XMLNS solution provide?
Fully W3C compliant.
Quote:
Does it error out on first encounter of mismatch or does it provide a list of errors?
By default it stops after the first error. However, if you set Failure Action to 'ExceptionList' it will tolerate some errors ( mainly those which involve attribute values not matching their facets ).
Recovering from errors involving element content ( like an element missing from a sequence ) is tricky because
a) there are often a range of possible errors which could be reported and
b) a single error early in the message can cause a huge cascade of secondary errors.
Hence the restriction.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Feb 21, 2008 11:16 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ad67020_.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
crossland
PostPosted: Mon Oct 13, 2008 2:49 am    Post subject: Reply with quote

Master

Joined: 26 Jun 2001
Posts: 248

Does the validation provided with 6.1 provide the same level of validation of xml against a schema, as that provided by the xml validation node supplied with the 1a9a supportpac?

Thanks,

Tim
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Oct 13, 2008 4:38 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Hi,

It depends on what you mean by 'same level of validation'?
XMLNSC is 100% compliant with the W3C XML Schema specification. IA9A is based on the Xerces parser, which also complies fully with the W3C schema spec. So XMLNSC will be at least as 'strict' as IA9A. Does that answer your question?
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 » XML Validator Node Issue
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.