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 empty tag generation problems

Post new topic  Reply to topic
 XML empty tag generation problems « View previous topic :: View next topic » 
Author Message
pauillac
PostPosted: Thu Mar 14, 2002 1:46 am    Post subject: Reply with quote

Novice

Joined: 13 Jul 2001
Posts: 21

Hi,

Q1. Is it possible to generate the empty tag in the format <tagname/> in MQSI 2.1?
Q2. Is there any way of differentiate <tagname></tagname> and <tagname/> in MQSI 2.1?

Thanks,
C.K.
Back to top
View user's profile Send private message
chanduy9
PostPosted: Thu Mar 14, 2002 2:35 pm    Post subject: Reply with quote

Disciple

Joined: 28 Nov 2001
Posts: 177
Location: USA

Hi,
just pass null value to that tag it will genarate the <tagname/>, i hope there is no difference between those.
try this,
SET OutputRoot.XML.Body.Tagname='';
good luck,
Chandra.
Back to top
View user's profile Send private message
pauillac
PostPosted: Thu Mar 14, 2002 4:24 pm    Post subject: Reply with quote

Novice

Joined: 13 Jul 2001
Posts: 21

Hi Chandra,

I already tried this to no avail in MQSI 2.1. In MQSI 2.0.2, it is possible to generate <tagname/> but in this version it cannot.
The reason why I want to do this is the consultancy firm AccXnture suggests using <tagname></tagname> for "EMPTY" and <tagname/> for "NULL" in Siebel. "EMPTY" means no value for the tag and "NULL" means this tag should be ignored entirely. I think this is an abuse of XML but AccXnture is really domineering. Any other suggestions?

Thanks
Back to top
View user's profile Send private message
amigupta1978
PostPosted: Thu Mar 14, 2002 5:36 pm    Post subject: Reply with quote

Centurion

Joined: 22 Jan 2002
Posts: 132
Location: India

Hi
Use like this
SET OutputRoot.XML.tag1.tag2.(XML.Content) = NULL;

generates the following XML:
<tag1><tag2/></tag1>

Regards
Amit

Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
pauillac
PostPosted: Fri Mar 15, 2002 3:10 am    Post subject: Reply with quote

Novice

Joined: 13 Jul 2001
Posts: 21

Hi,

Thanks a lot. One more question.

Input XML's:
1. <test><tagname></tagname></test>
2. <test><tagname/></test>

Is it possible to differentiate the input XML's for different processing in ESQL?

Thanks
Back to top
View user's profile Send private message
jfluitsm
PostPosted: Fri Mar 15, 2002 7:47 am    Post subject: Reply with quote

Disciple

Joined: 24 Feb 2002
Posts: 160
Location: The Netherlands

Hi,

I guess tagname = '' or tagname.(XML.Content) = '' for the first and tagname.(XML.Content) = NULL for the second. Just try.


_________________
Jan Fluitsma

IBM Certified Solution Designer WebSphere MQ V6
IBM Certified Solution Developer WebSphere Message Broker V6
Back to top
View user's profile Send private message Send e-mail
jfluitsm
PostPosted: Fri Mar 15, 2002 8:22 am    Post subject: Reply with quote

Disciple

Joined: 24 Feb 2002
Posts: 160
Location: The Netherlands

I tried it, doesn't work.

Setting XML.Content to NULL is only a 'trick' to force the short form of an empty tag.

It looks like it's not possible to distinquise the difference in an input message, which is all to well as according to the XML standard there is no difference.

_________________
Jan Fluitsma

IBM Certified Solution Designer WebSphere MQ V6
IBM Certified Solution Developer WebSphere Message Broker V6
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML empty tag generation problems
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.