Extract element namespace

Good day!
I want to extract the data of individual elements from DocFound: Name and Number. This expression retrieves all the elements xDoc.Root.Descendants (nsKZVU + “DocFound”) (0). How do I extract only the Name and Number elements?
DocFound in the kvzu namespace. Please help.
sample.xml (1.0 KB)

as Name and Number are direct children from DocFound give a try on following:

strNumber =  xDoc.Root.Descendants(nsKZVU + "DocFound")(0).Element(nsKZVU+"Name").Value.toString

A godd thing for testing / learning is following:

  • set a breakpoint very low/close within the xaml
  • rund debug
  • explore / test statements within the watch panel / immediate panel

Thank you very much, very helpful!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.