Author |
Message
|
Jasmine |
Posted: Wed Jun 04, 2014 9:47 am Post subject: To convert XMLNSC to MRM |
|
|
Newbie
Joined: 27 May 2014 Posts: 5
|
Hello All,
I am new WMB .Im working on transforming from one format to another format.I got strucked with the transformation like XMLNSC to MRM(fixed length).
Could any guide me how to write the code in ESQL for transforming XMLNSC to MRM please...............
Regards,
Jasmine |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jun 04, 2014 10:41 am Post subject: Re: To convert XMLNSC to MRM |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Jasmine wrote: |
Could any guide me how to write the code in ESQL for transforming XMLNSC to MRM please............... |
You don't. ESQL works on message trees not formats, fixed length or otherwise. If the input message tree happens to come from an XML document and the output tree happens to result in a fixed length file that's nothing to do with your ESQL.
It's everything to do with your message set. I say message set since you refer to MRM not DFDL, but the principle is the same with later versions. Like the IIBv9 your previous post complained about not being able to start. In which case you should be using DFDL not MRM to describe the fixed length format. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kimbert |
Posted: Wed Jun 04, 2014 11:56 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Vitor is correct. The code that you need will look something like this:
Code: |
SET OutputRoot.DFDL = InputRoot.XMLNSC; |
...or the equivalent in Java / Mapping Node / PHP. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
Jasmine |
Posted: Thu Jun 05, 2014 1:13 am Post subject: Need ESQL Code For Converting XMLNSC to MRM |
|
|
Newbie
Joined: 27 May 2014 Posts: 5
|
hi,
Thank you for responding could you pleas send a esql code to covert the input XML to MRM .Im not finding it any where.
I am trying it my own but not succeeding if u have could anyone of you send me a sample code if possible |
|
Back to top |
|
 |
kimbert |
Posted: Thu Jun 05, 2014 1:22 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
If you have tried and you have not succeeded then you should tell us what happened. Quote the error message that you received ( if any ).
The first question is 'why MRM'. As Vitor said, you should be using DFDL if you are using WMBv8 or IIB v9. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jun 05, 2014 4:21 am Post subject: Re: Need ESQL Code For Converting XMLNSC to MRM |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Jasmine wrote: |
could you pleas send a esql code to covert the input XML to MRM .Im not finding it any where. |
So what did you think the code sample posted was? A recipe for lamb stew?
Jasmine wrote: |
I am trying it my own |
There seems to be very little evidence of that. Not only are you posting really simplistic questions, you're not even reading the responses. Just reposting the same question in the hope of an answer you like.
Jasmine wrote: |
but not succeeding |
What are the symptoms of your failure? XML comes out in the file? Monkeys come out of your computer? No code writes itself no matter how hard you stare at the computer?
Jasmine wrote: |
if u have could anyone of you send me a sample code if possible |
a) You've got as much sample as you need
b) You've got as much advice as you need
c) You have access to all the product information you need
This is about as simple a task as you can get & I agree with @kimbert that the 1 line quoted is probably all you need. If you need more of a sample than that, you should reconsider your career choices; it gets much, much more complicated after this. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|