Author |
Message
|
neelus |
Posted: Wed May 09, 2007 9:57 am Post subject: different delimiters between the fields |
|
|
 Newbie
Joined: 23 Apr 2007 Posts: 2
|
How we will handle an input message with different delimiters between the fields? |
|
Back to top |
|
 |
dsriksha |
Posted: Wed May 09, 2007 10:11 am Post subject: Re: different delimiters between the fields |
|
|
 Voyager
Joined: 27 Feb 2005 Posts: 95
|
neelus wrote: |
How we will handle an input message with different delimiters between the fields? |
Provide more details like Sample Input Data with what you r trying to achieve, Tools you are using with versions and what you tried etc. If not me, some one will surely help you with this  |
|
Back to top |
|
 |
kimbert |
Posted: Sun May 13, 2007 3:20 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Please provide the following:
- example message ( more than one message if necessary )
- what message tree you want to get after you have parsed each example message.
Sorry, but parsing questions always come down to the details, and there are no shortcuts. |
|
Back to top |
|
 |
neelus |
Posted: Mon May 14, 2007 6:15 am Post subject: |
|
|
 Newbie
Joined: 23 Apr 2007 Posts: 2
|
For example the Message is OrgName*12345&INDIA#EMAILID$ContactNO
Here *,&,#,$ are the Different Delimiters.
Is it possible to use different Delimiters in a Message.
That's my ? |
|
Back to top |
|
 |
vk |
Posted: Mon May 14, 2007 7:59 am Post subject: |
|
|
Partisan
Joined: 20 Sep 2005 Posts: 302 Location: Houston
|
You can try the following design -
Quote: |
Message of type Message_Type (Delimiter - any character not present in input bitstream)
--------ComplexElement4 of type Type4 (Delimiter $)
----------------ComplexElement3 of type Type3 (Delimiter #)
------------------------ComplexElement2 of type Type2 (Delimiter &)
--------------------------------ComplexElement1 of type Type1 (Delimiter *)
----------------------------------------OrgName
----------------------------------------12345
--------------------------------INDIA
------------------------EMAILID
----------------ContactNo |
Define all types as All Elements Delimited.
Regards,
VK. |
|
Back to top |
|
 |
|