|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
MRM - Mandatory Elements |
« View previous topic :: View next topic » |
Author |
Message
|
goldym |
Posted: Thu Jul 21, 2005 7:03 am Post subject: |
|
|
Centurion
Joined: 24 Jun 2005 Posts: 116
|
You guys are correct.. What I ended up doing is using the MRM to do the parsing and validating. I imported my schema files into one Message Project/messageSet and then generated seperate .mxsds for each one. |
|
Back to top |
|
 |
goldym |
Posted: Thu Jul 21, 2005 7:28 am Post subject: |
|
|
Centurion
Joined: 24 Jun 2005 Posts: 116
|
Since I have multiple .mxsds in a messageSet, when I have an XML that comes and my input node is set to the MRM domain, is there anyway to get the Root Tag? or determine which Message it belongs to? I need to do a route to label but I dont' knwo how to get the Message (Root Tag? |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jul 21, 2005 7:32 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Again, unless you specify a RootTag property on the message set, one of the first children of InputRoot.XMLNS will be your root tag.
So, if your document looks like <myDoc><group1><elem1/></group1></myDoc>, then you can check to see if InputRoot.XMLNS.myDoc is NULL. If it is, you know that the root tag is something else. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kimbert |
Posted: Fri Jul 22, 2005 4:41 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 Location: Southampton
|
Jeff : goldym is now using the MRM domain, so the root tag from the input document will not appear in the logical tree.
goldym : you can access the logical name of the input message like this:
Code: |
InputRoot.Properties.MessageType |
...so if all your input messages have a different logical name, you're home and dry. |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Jul 22, 2005 4:45 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
kimbert wrote: |
Jeff : goldym is now using the MRM domain, so the root tag from the input document will not appear in the logical tree. |
 _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|