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 » Accessing XML nodes

Post new topic  Reply to topic
 Accessing XML nodes « View previous topic :: View next topic » 
Author Message
sarathsps
PostPosted: Fri Aug 29, 2014 1:37 pm    Post subject: Accessing XML nodes Reply with quote

Novice

Joined: 04 May 2006
Posts: 19

I have a XML like this

<A>
<B>
<field1>test1</field1>
</B>
<C>
<field2>test2</field2>
</C>
</A>


i tried with the below statement

set v1=InputRoot.XML.A.*.field1;
set v2=InputRoot.XML.A.*.field2;

V1 is working on V2 is not working because * will take only the first element of the node.

is there any way to access the field2 dynamically? I have a requirement that the immediate parent name of the field is subject to change dynamically.
Back to top
View user's profile Send private message
kash3338
PostPosted: Mon Sep 01, 2014 10:06 pm    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Did you try MOVE NEXTSIBLING option? I guess that would help achieve your requirement.
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Mon Sep 01, 2014 11:50 pm    Post subject: Reply with quote

Grand High Poobah

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

kash3338 wrote:
Did you try MOVE NEXTSIBLING option? I guess that would help achieve your requirement.

He'd need to use a reference and not a variable for that...
_________________
MQ & Broker admin
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 » Accessing XML nodes
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.