XML get nodes name through xPath

Holograph

New Member
I have this XML\[code\]<Parent> <Children> <child1>1</child1> <secondchild>2</secondchild> <child3>3</child3> <fourth>4</fourth> </Children></Parent>\[/code\]using xpath, i want to get each \[code\]Children\[/code\]'s node name to end up with :
  • child1
  • secondhild
  • child3
  • fourth
something like \[code\]Parent/Children/*[@name]\[/code\].. without aiming at any attribute, only the main child node name
 
Back
Top