Quote:
<ns2:faclocnr>
...
"//dest/FacLocNr"
The node is called
faclocnr
, and is in the
dfyth
namespace.
It will therefore not match a query for
FacLocNr
in the default namespace.
You need to include the namespace in your query, and the element name needs to match precisely - XML is case-sensitive.
if (xmlDoc.SelectSingleNode("//dest/ns2:faclocnr", manager) != null)
{
FacLocNr = xmlDoc.SelectSingleNode("//dest/ns2:faclocnr", manager).InnerText;
}