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 » Parsing Question.

Post new topic  Reply to topic
 Parsing Question. « View previous topic :: View next topic » 
Author Message
iceage
PostPosted: Fri Dec 14, 2012 6:00 pm    Post subject: Parsing Question. Reply with quote

Acolyte

Joined: 12 Apr 2006
Posts: 68

Its been sometime i had to use message broker , but looking for some direction as i go to research how to do this V8. I have done TDS (Tagged Delimited ) for value only input . Having Name & Value as part of input makes me wonder what to do ..

Appreciate any guidance or pointer . I will figure out how on the implementation.

Input is
Quote:
Root{Element1:tag1,tag1value|tag2,tag2value|{Element2:tag1,tag1value|tag2,tag2value|


So essentially it means this
<Root>
<Element1 tag1="tag1value" tag2="tag2value" />
<Element2 tag1="tag1value" tag2="tag2value" />
</Root>


Last edited by iceage on Sat Dec 15, 2012 1:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
Vitor
PostPosted: Sat Dec 15, 2012 5:44 am    Post subject: Re: Parsing Question. Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

iceage wrote:
Its been sometime i had to use message broker , but looking for some direction as i go to research how to do this V8.


You do this using the shiny new DFDL parser not TDS.

I would think (and I've not had a lot of exposure to it) the graphical thing could probably manage this.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Dec 17, 2012 7:47 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

As Vitor says, DFDL is the obvious choice. Have you tried it yet?
Back to top
View user's profile Send private message
iceage
PostPosted: Fri Dec 28, 2012 12:52 pm    Post subject: Reply with quote

Acolyte

Joined: 12 Apr 2006
Posts: 68

Thanks guys for the direction.

Though i am kind of had some success with DFDL.

My input message is a self defining delimited message - Should i make maxoccurs for complextype to unbounded in DFDL to represent this? In other words , below message might have 10 or 20 or "N" element fields at any time. Below sample is for 2 fields , but next message might be 10.

Quote:
Root{Element1:tag1,tag1value|tag2,tag2value|{Element2:tag1,tag1value|tag2,tag2value|


Also let me know if there is any article or write-up that illustrates DFDL modelling with example.

Thanks.
Back to top
View user's profile Send private message
kimbert
PostPosted: Sat Dec 29, 2012 11:41 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
My input message is a self defining delimited message
It's not really 'self-defining' in the sense that the WMB info center uses that term. It's just a normal tagged, delimited data format that contains an unbounded number of occurrences at ( at least ) one level.
I expect you have found this out already, but DFDL uses the term 'initiator' instead of 'tag'.
Quote:
Should i make maxoccurs for complextype to unbounded in DFDL to represent this?
Yes - that's what maxOccurs is for. Make sure that occursCountKind is set to 'implicit' as well.
Quote:
Also let me know if there is any article or write-up that illustrates DFDL modelling with example.
Not yet - although DFDL tends to be a lot easier to work with than TDS. And there is a written specification for the language available on the internet. The tutorials will be along soon.
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 » Parsing Question.
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.