Looping XML Elements

we suggest the following:

Analyze the XML Namespaces as described here:

then loop over all speciality elements and process the code and name

xnsDefault | XNamespace Variable

For each activity | TypeArgument: XElement |
item in xDoc.Root.Descendants(xnsDefault + "specialty")

  • log message: item.Element(xnsDefault + "specialtyCode").Value
  • log message: item.Element(xnsDefault + "specialtyName").Value