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 » Xml Structure creation

Post new topic  This topic is locked: you cannot edit posts or make replies.
 Xml Structure creation « View previous topic :: View next topic » 
Author Message
sai kumar adduri
PostPosted: Mon Oct 28, 2013 4:54 am    Post subject: Xml Structure creation Reply with quote

Acolyte

Joined: 04 Apr 2013
Posts: 73

Hello,
I have to create the following structure
<items>
<item>
<attr name="baseRetailUomCd">GR</attr>
<attr name="mfgrSugdRtlAmt"></attr>
<attrMany name="spclHndlgMsg">
<value> </value>
</attrMany>
<attr name="vendorDeptNbr">1</attr>
<attr name="consumerItemNbr">8960562</attr>
</item>
</items>

For this I have used
SET OutputRoot.XMLNSC.ns:items.ns:item.ns:attr[1]='GR';
SET OutputRoot.XMLNSC.ns:items.ns:item.ns:attr[1].(XMLNSC.Attribute)name='baseRetailUomCd';

SET OutputRoot.XMLNSC.ns:items.ns:item.ns:attr[2].(XMLNSC.Attribute)name='mfgrSugdRtlAmt';

SET OutputRoot.XMLNSC.ns:items.ns:item.ns:attrMany.(XMLNSC.Attribute)name='spclHndlgMsg';

SET OutputRoot.XMLNSC.ns:items.ns:item.ns:attrMany.ns:value='';

SET OutputRoot.XMLNSC.ns:items.ns:item.ns:attr[3]='1';
SET OutputRoot.XMLNSC.ns:items.ns:item.ns:attr[3].(XMLNSC.Attribute)name='vendorDeptNbr';

SET OutputRoot.XMLNSC.ns:items.ns:item.ns:attr[4]='8960562';
SET OutputRoot.XMLNSC.ns:items.ns:item.ns:attr[4].(XMLNSC.Attribute)name='consumerItemNbr';

But got this
<items xmlns:NS1="http://itemfile.wal-mart.com/item/pub">
<item>
<attr name="baseRetailUomCd">GR</attr>
<attr name="mfgrSugdRtlAmt"/>
<attr name="vendorDeptNbr">1</attr>
<attr name="consumerItemNbr">8960562</attr>
<attrMany name="spclHndlgMsg">
<value></value>
<attrMany>
<item>
<items>
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Oct 28, 2013 5:19 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

See the advice given to your associate / other forum id in this duplicate post and follow that.

Assuming you are 2 people, trying working together.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Xml Structure creation
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.