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 » Generation XML with ordered fields

Post new topic  Reply to topic
 Generation XML with ordered fields « View previous topic :: View next topic » 
Author Message
michals
PostPosted: Wed Mar 24, 2010 12:54 am    Post subject: Generation XML with ordered fields Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Wed Mar 24, 2010 1:38 am    Post subject: Reply with quote

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
Code:
root
    C
    A
    B
to
Code:
root
    A
    B
    C
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
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 » Generation XML with ordered fields
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.