• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

accessing specific nodes of xml

i have  

 XmlRequest.XmlRoot.XmlChildren[i].XmlChildren[1]

where this is in a loop the XmlChildren[1] specifies a specific node and because they are in a specific order its ok but is there a way i can access the child by a name ie

XmlRequest.XmlRoot.XmlChildren[i].XmlChildren['name']  
0
jockmahon01
Asked:
jockmahon01
1 Solution
 
PkotianCommented:
Hi,
Do you want to access the attribute or node name?
If you want the Node name then you can go with
XmlRequest.XmlRoot.XmlChildren[i].nodeName
or  if attribute is needed then
XmlRequest.XmlRoot.XmlChildren[i].getAttribute("Attributename");
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now