|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How do I get the name of the xml element attribute ? |
« View previous topic :: View next topic » |
Author |
Message
|
hs |
Posted: Wed Mar 14, 2007 7:48 am Post subject: How do I get the name of the xml element attribute ? |
|
|
 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 |
|
 |
special_agent_Queue |
Posted: Wed Mar 14, 2007 8:05 am Post subject: |
|
|
 Centurion
Joined: 27 Jul 2006 Posts: 102
|
|
Back to top |
|
 |
hs |
Posted: Wed Mar 14, 2007 8:37 am Post subject: |
|
|
 Novice
Joined: 03 Jun 2005 Posts: 17
|
Thanks that worked ! _________________ IBM Certified System Administrator - WebSphere MQ V5.3 |
|
Back to top |
|
 |
kimbert |
Posted: Wed Mar 14, 2007 12:17 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|