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 » Help regarding XML declaration

Post new topic  Reply to topic
 Help regarding XML declaration « View previous topic :: View next topic » 
Author Message
cronydude
PostPosted: Mon Dec 17, 2001 6:30 am    Post subject: Reply with quote

Voyager

Joined: 11 Nov 2001
Posts: 85
Location: US

Hi folks,
i have a xml file say,

<?xml version="1.0" standalone="yes" ?>
<Test>
<Name>crony</Name>
</Test>

The requirement is that to embed the incomming xml file in some other tag(s) and pass it to some other queue.For example like

<?xml version="1.0" standalone="yes" ?>
<Embed>
<Test>
<Name>crony</Name>
</Test>
</Embed>

i have used a compute node for the purpose and the ESQL is

SET OutputRoot.XML.Embed = InputRoot.*[LAST];

with "copy message headers only option".

But the output is missing the xml declaration i.e.,

<?xml version="1.0" standalone="yes" ?>

This can be achieved in MQSI V2.1 as the tree structure includes xml declaration and hence possible to access it thro' ESQL(enhanced in version 2.1).How can it done in MQSI 2.0.1?i tried setting the format field of properties to XML.but it did not work.Anyone there can help me pls!

regards
crony
Back to top
View user's profile Send private message
DaveyD
PostPosted: Mon Dec 17, 2001 6:48 am    Post subject: Reply with quote

Novice

Joined: 11 Dec 2001
Posts: 12

Before the 'SET OutputRoot.XML.Embed = InputRoot.*[LAST];' statement, have you tried :
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XML.(XML.XmlDecl).(XML.attr)standalone = 'yes';
or something to that effect ?

Back to top
View user's profile Send private message
zpat
PostPosted: Mon Dec 17, 2001 7:00 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

WMQI 2.1 MRM defined XML messages can generate the XML headers for you.

If you continue to use generic XML you have to code ESQL to generate it. Examples are in the ESQL reference manual. This manual first appears with 2.0.2 but I imagine the generic XML header statements would apply to 2.0.1
Back to top
View user's profile Send private message
cronydude
PostPosted: Mon Dec 17, 2001 7:16 am    Post subject: Reply with quote

Voyager

Joined: 11 Nov 2001
Posts: 85
Location: US

hi dave and pat,
thanks for ur inputs.it is working!!!



regards
crony


[ This Message was edited by: cronydude on 2001-12-21 02:11 ]
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 » Help regarding XML declaration
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.