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 » How to get element value in Compute Node?

Post new topic  Reply to topic
 How to get element value in Compute Node? « View previous topic :: View next topic » 
Author Message
chargie
PostPosted: Fri Sep 29, 2006 12:07 am    Post subject: How to get element value in Compute Node? Reply with quote

Novice

Joined: 21 Sep 2006
Posts: 10

given this XML

<Employee Gender='Male'>
<Name>Jason</Name>
</Employee>

I want to use a string variable to save value of element Name, how to reference to the value?

SET NAME CHARACTER;
SET NAME = InputRoot.XMl.Employee.Name.?

replace "?" with what?

by the way, via "InputRoot.XML.Employee.Gender.Value" can I get value of Gender?

I couldn't find related doc in Info Center, forgive me, a newbie
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Fri Sep 29, 2006 12:19 am    Post subject: Re: How to get element value in Compute Node? Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi chargie
chargie wrote:
SET NAME CHARACTER;
SET NAME = InputRoot.XMl.Employee.Name.?
SET NAME = InputRoot.XML.Employee.Name

chargie wrote:
"InputRoot.XML.Employee.Gender.Value" can I get value of Gender?
InputRoot.XML.Employee.(XML.Attribute)Gender

Also, InputRoot.XML = InputBody ....u can use either.

Regards.
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Fri Sep 29, 2006 12:27 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
SET NAME CHARACTER
I think you mean 'DECLARE NAME CHARACTER'.
Back to top
View user's profile Send private message
chargie
PostPosted: Fri Sep 29, 2006 12:45 am    Post subject: Reply with quote

Novice

Joined: 21 Sep 2006
Posts: 10

Great, thanks a lot

yes, I mean "DECLARE NAME CHARACTER"
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Sep 29, 2006 2:17 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

And if you can use XMLNS and not XML (InputRoot.XMLNS....)
Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
wschutz
PostPosted: Fri Sep 29, 2006 3:27 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

fjb_saper wrote:
And if you can use XMLNS and not XML (InputRoot.XMLNS....)
Enjoy
and if you do use XMLNSC (the "compact" version of XMLNS), then its:

SET NAME = InputRoot.XMLNSC.Employee.Name
and
InputRoot.XMLNSC.Employee.(XMLNSC.Attribute)Gender

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac26040_.htm
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to get element value in Compute Node?
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.