|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Generation XML with ordered fields |
« View previous topic :: View next topic » |
Author |
Message
|
michals |
Posted: Wed Mar 24, 2010 12:54 am Post subject: Generation XML with ordered fields |
|
|
Newbie
Joined: 23 Mar 2010 Posts: 1
|
Hello,
I need to create xml according to xsd that is defined sequence.
In business logic fields generated in random order, but output sequence has to be as defined in XSD.
Which data model (XMLNSC, MRM...) should I use?
What is the suggested best way to do it?
As far as I know MB not really check order when uses XML models.
MB version 6.1 (move soon to 7)
Thanks,
Michal |
|
Back to top |
|
 |
kimbert |
Posted: Wed Mar 24, 2010 1:38 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I need to create xml according to xsd that is defined sequence.
In business logic fields generated in random order, but output sequence has to be as defined in XSD. |
So you want to change
to
to ensure that the output XML matches the xsd.
Quote: |
Which data model (XMLNSC, MRM...) should I use? |
XMLNSC and MRM are not 'data models'. They are 'domains' or 'parsers'. If you call them by the wrong name, you will confuse yourself.
Quote: |
As far as I know MB not really check order when uses XML models. |
So what do you think the Validation option does?
Quote: |
What is the suggested best way to do it? |
Usually the best approach is to create the fields in the message tree in the correct order. However, let's assume that this is not possible in your case. I think a Mapping node that maps each field to itself will do the trick. Should be possible to use the 'Map by name' feature to automatically generate the mappings.
Anybody got a better idea? |
|
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
|
|
|
|