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 do I get the name of the xml element attribute ?

Post new topic  Reply to topic
 How do I get the name of the xml element attribute ? « View previous topic :: View next topic » 
Author Message
hs
PostPosted: Wed Mar 14, 2007 7:48 am    Post subject: How do I get the name of the xml element attribute ? Reply with quote

Novice

Joined: 03 Jun 2005
Posts: 17

Hi All,

I would like to identify the first element attribute, which in the example below is id. However, the code is returning the value id0002. How do I get the name instead ?

<amount_to_disinvest id="id0002" currency="GBP">65.93</amount_to_disinvest>

Code:
OutputRoot.XML.amount_to_disinvest.(XML.attr)[>]


Thanks in advance.
_________________
IBM Certified System Administrator - WebSphere MQ V5.3
Back to top
View user's profile Send private message
special_agent_Queue
PostPosted: Wed Mar 14, 2007 8:05 am    Post subject: Reply with quote

Centurion

Joined: 27 Jul 2006
Posts: 102

FIELDNAME
Back to top
View user's profile Send private message
hs
PostPosted: Wed Mar 14, 2007 8:37 am    Post subject: Reply with quote

Novice

Joined: 03 Jun 2005
Posts: 17

Thanks that worked !
_________________
IBM Certified System Administrator - WebSphere MQ V5.3
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Mar 14, 2007 12:17 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I would like to identify the first element attribute,
Two things occur to me at this point:
1. I hope you are not writing code which relies on the attribute 'id' being the first. Attributes are by definition unordered.
2. If you are writing a new message flow, you should consider using the XMLNSC domain, not XML.
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 » How do I get the name of the xml element attribute ?
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.