I have an Xelement being passed into a function:
ByVal request As XElement
inside the Xelement object is an element:
<nc:ID>1234567</nc:ID>
I should be able to get this value by:
request.Element("ID").value
...but it does not return anything. I suspect this is because of the namespace prefix. I saw a solution in this post which after translating to VB.net (request.Elements().Where(Function(e) e.Name.LocalName = "ID").Value
) works, but I do not understand why or why the .element("ID").value does not return the value. Can anyone give me some insight into this?