How to automatically detect a namespace in the root label, to then extract its value into a variable and be able to loop through the elements

Thanks @ppr and since i could read the xml and then extract from a namespace i specify its fields and values please, I am doing the following:

  1. read xml text
  2. deserialize xml
  3. xmlDes.Descendants(xmlns+“Invoice”) to loop only elements within the invoice.

xmlns is a variable with the value extrated from xml.