Hi!
After Deserialize XML in XDoc (type XDocument) I do For Each on XDoc.Elements(“MyNode1”).Elements(“MyNode2”).Elements(“MyNode3”)
But no MyNode3 element in xml-file and I get error “Object reference not set to an instance of an object” in For Each.
I parsing different xml-files and I don’t know if this element is in the file or not.
How to check there is an element in XDoc or not?