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 IndexWebSphere Message Broker SupportXSD Schema validation for Message set with groups and length

Post new topicReply to topic
XSD Schema validation for Message set with groups and length View previous topic :: View next topic
Author Message
dpu.gujjar
PostPosted: Wed Oct 24, 2018 3:41 am Post subject: XSD Schema validation for Message set with groups and length Reply with quote

Newbie

Joined: 22 Aug 2018
Posts: 4

I am looking for a regular expression for XSD that finds the character but not match it to the group..

For instance: /AB-AAAA<CR><LF>

Regular expression: /[A][B]-[A]{4}

If I am using above expression the exceeding length values are been assigned to sequence.

Regular expression: /[A][B]-[A]{4}(?=\r), this may work but positive look ahead is not supported for XSD, Please share any other xsd that can resolve this issue
Back to top
View user's profile Send private message Send e-mail
timber
PostPosted: Wed Oct 24, 2018 7:15 am Post subject: Reply with quote

Sentinel

Joined: 25 Aug 2015
Posts: 868

Please supply more information about what you are trying to do. Provide examples of strings that should and should not match. Explain what the overall task of the message flow is.
Back to top
View user's profile Send private message
dpu.gujjar
PostPosted: Wed Oct 24, 2018 7:41 am Post subject: Reply with quote

Newbie

Joined: 22 Aug 2018
Posts: 4

Below is my message set structure

Choice- Use data pattern
Sequence1- /[A][B]-[A]{4}
Code
Sequence2
Address

Input messages are
1 /AB-AAAA<cr><lf> --- Assign to Sequence1
When /[A][B]-[A]{4} pattern is used for the date with length more than 4 is assigned to sequence thus failing the validation. Expectation is it should assign to sequence 2. I cannot use crlf in the pattern as that is a delimiter for parent tag and will fail there if there is no match of crlf
However, the pattern can use crlf for the match and ignore the match later.
2 /AB-AAAAAAAA --- Assign to sequence 2
Back to top
View user's profile Send private message Send e-mail
timber
PostPosted: Thu Oct 25, 2018 1:09 am Post subject: Reply with quote

Sentinel

Joined: 25 Aug 2015
Posts: 868

You are creating a new message model for use by the TDS parser?!
You should be using the DFDL parser - it is easier to use and provides better debugging facilities.

Please post *full* details of the format that you are trying to parse - not just a couple of lines, the full message. And please provide examples of messages that should fail, as requested previously.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportXSD Schema validation for Message set with groups and length
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.