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 » JSON to XML format

Post new topic  Reply to topic
 JSON to XML format « View previous topic :: View next topic » 
Author Message
dedeepya
PostPosted: Sun Jan 12, 2014 8:09 am    Post subject: JSON to XML format Reply with quote

Newbie

Joined: 12 Jan 2014
Posts: 1

Hi ,

I am trying to convert json format to xml...

the json format from MQ was like this
<data>
<id>12</id>
<loc>usa</loc>
<quan> 2</quan>
</data>
and this data tag was repeating...and so the id,loc,quan will also b repeating

while mapping this to xml..i shall check whether id value is distinct,for every time i encounter id tag within data...

so can any one share their idea to chek the uniqueness of the tag value?
Back to top
View user's profile Send private message
Vitor
PostPosted: Sun Jan 12, 2014 8:48 am    Post subject: Re: JSON to XML format Reply with quote

Grand High Poobah

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

dedeepya wrote:

the json format from MQ was like this
<data>
<id>12</id>
<loc>usa</loc>
<quan> 2</quan>
</data>


That doesn't look like JSON to me
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sun Jan 12, 2014 9:33 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Broker doesn't provide predefined functions for testing uniqueness.

You have to write one.
Back to top
View user's profile Send private message
mgk
PostPosted: Sun Jan 12, 2014 11:05 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Quote:
Broker doesn't provide predefined functions for testing uniqueness.


Apart from the SINGULAR function.

http://pic.dhe.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.doc/ak05585_.htm

Kind regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
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 » JSON to XML format
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.