G
George Waters
Guest
Hi,
I am getting a null reference when trying to get the EventID value in this xml:
Dim nsmgr As XmlNamespaceManager = New XmlNamespaceManager(New NameTable())
nsmgr.AddNamespace("ns", "http://schemas.microsoft.com/win/2004/08/events/event")
Dim root As XDocument = XDocument.Load("C:\xml.xml")
Dim res = root.XPathSelectElement("./System/EventID", nsmgr).Value
Any ideas what I am doing wrong?
G.Waters
Continue reading...
I am getting a null reference when trying to get the EventID value in this xml:
Dim nsmgr As XmlNamespaceManager = New XmlNamespaceManager(New NameTable())
nsmgr.AddNamespace("ns", "http://schemas.microsoft.com/win/2004/08/events/event")
Dim root As XDocument = XDocument.Load("C:\xml.xml")
Dim res = root.XPathSelectElement("./System/EventID", nsmgr).Value
Any ideas what I am doing wrong?
G.Waters
Continue reading...