|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
IIB 9: Graphical Mapping Node, Namespace |
« View previous topic :: View next topic » |
Author |
Message
|
akil |
Posted: Mon Jul 21, 2014 5:35 am Post subject: IIB 9: Graphical Mapping Node, Namespace |
|
|
 Partisan
Joined: 27 May 2014 Posts: 338 Location: Mumbai
|
Hi
I am currently getting the following kind of output from the Graphical mapping node
Code: |
<customer-account>
<account-base-sol/>
<account-close-date xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<account-number>1234</account-number>
<account-sol-description/>
<address/>
<cif-id/>
<city/>
<country/>
<dsb-registration-flag xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<email-id/>
<freez-status xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<frez-code xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<max-cash-del-amt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<max-cash-pkup-amt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<max-cash-stp-del-amt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<max-dd-del-amt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<max-dd-stp-del-amt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<min-cash-del-amt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<min-cash-pkup-amt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<min-dd-del-amt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<mobile-no/>
<name>akhilesh</name>
<pin/>
<rm-id/>
<scheme-description/>
<scheme-priority xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<schm-code/>
<segment/>
<segment-priority xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<state/>
</customer-account>
|
Is it possible to specify outgoing namespaces so that the output changes to the following
Code: |
<customer-account xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<account-base-sol/>
<account-close-date xsi:nil="true"/>
<account-number>1234</account-number>
<account-sol-description/>
<address/>
<cif-id/>
<city/>
<country/>
<dsb-registration-flag xsi:nil="true"/>
<email-id/>
<freez-status xsi:nil="true"/>
<frez-code xsi:nil="true"/>
<max-cash-del-amt xsi:nil="true"/>
<max-cash-pkup-amt xsi:nil="true"/>
<max-cash-stp-del-amt xsi:nil="true"/>
<max-dd-del-amt xsi:nil="true"/>
<max-dd-stp-del-amt xsi:nil="true"/>
<min-cash-del-amt xsi:nil="true"/>
<min-cash-pkup-amt xsi:nil="true"/>
<min-dd-del-amt xsi:nil="true"/>
<mobile-no/>
<name>akhilesh</name>
<pin/>
<rm-id/>
<scheme-description/>
<scheme-priority xsi:nil="true"/>
<schm-code/>
<segment/>
<segment-priority xsi:nil="true"/>
<state/>
</customer-account>
|
_________________ Regards |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jul 21, 2014 5:55 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You need to explicitly set the namespace declaration
Code: |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance |
on the xmlroot node.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
kimbert |
Posted: Mon Jul 21, 2014 1:51 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
...and I think you will need to do that in a (Java)Compute node that comes after the Mapping node.
You may want to ask yourself whether it is worth the effort - the meaning of the output document is the same either way. _________________ 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 |
|
 |
martinb |
Posted: Wed Jul 23, 2014 1:39 pm Post subject: |
|
|
Master
Joined: 09 Nov 2006 Posts: 210 Location: UK
|
Hi
As kimbert says the meaning of the XML is unaffected, it's just a bit more verbose.
The Graphical Data Mapping does not allow you to control the placement of the namespace declarations. For user level namespaces you can add a user defined prefix in the map using the namespace properties panel.
FYI Looking at the output from IIB v10 beta, this has been tweaked and the Mapping node output is declaring the xsi namespace once on the root when needed in the output XML document. |
|
Back to top |
|
 |
akil |
Posted: Wed Jul 23, 2014 9:45 pm Post subject: |
|
|
 Partisan
Joined: 27 May 2014 Posts: 338 Location: Mumbai
|
Thank you for letting me know about v10. This isn't critical for me to fix, it can wait for v10 to release.
I asked this to find out if there were any properties available, since the output isn't very pleasing to the human eye for review.. _________________ Regards |
|
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
|
|
|
|