|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Parsing Question. |
« View previous topic :: View next topic » |
Author |
Message
|
iceage |
Posted: Fri Dec 14, 2012 6:00 pm Post subject: Parsing Question. |
|
|
 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 |
|
 |
Vitor |
Posted: Sat Dec 15, 2012 5:44 am Post subject: Re: Parsing Question. |
|
|
 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 |
|
 |
kimbert |
Posted: Mon Dec 17, 2012 7:47 am Post subject: |
|
|
 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 |
|
 |
iceage |
Posted: Fri Dec 28, 2012 12:52 pm Post subject: |
|
|
 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 |
|
 |
kimbert |
Posted: Sat Dec 29, 2012 11:41 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|