Posted: Thu Jun 02, 2005 8:15 pm Post subject: How to enforce parser to adhere to message set?
Voyager
Joined: 15 Nov 2004 Posts: 88
Hi All,
I have modelled my message set as follows:
<?xml version="1.0"?>
<Lib>
<Book>
<Title>The Adventures of Tom Sawyer</Title>
<Author>Mark Twain</Author>
<Publisher>McMillan India Pvt. Ltd.</Publisher>
</Book>
<Audio>
<VCD>
<Title>The Best Of Me</Title>
<Singer>Bryan Adams</Singer>
</VCD>
<DVD>
<Title>The Party Album</Title>
<Singer>Vengaboyz</Singer>
<Price> Rs. 400 </Price>
</DVD>
</Audio>
</Lib>
How do I make my parser to adhere to the message set? In other words I would like to see the message fail if it doesnt adhere to the message set definition.
The problem I am facing is as follows:
If in the above message I modify the VCD data as below:
<VCD>
<Title>The Best Of Me</Title>
<Singer>Bryan Adams</Singer>
<Tag>0987</Tag>
</VCD>
I find that the message is going to the output node!!! As the element Tag is not defined in the message set at all .... I thought it should go to the failure queue.
Is it possible to enforce the parser to adhere to the message set?
Switch on validation in the Input node or Compute node properties of your message flow. Make sure that all your compound types have their 'Type Content' property set to 'Closed' - otherwise their content will not be validated.
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