I'm loading an XML file, getting the values of some nodes and then setting those values into an object.The problem is that although I can get into the each node, I can't get its value: it just returns null. Searching in Google and SO I found several threads saying that usually it is a problem of namespaces. So I set up a namespace on the XML file and in my code to work with it. This is now when things get funny:
- If all the nodes but the last one are prefixed (in my code) with the namespace, all of them gets set except that particular one which gives an ArgumentNullException (\[code\]tabla\[/code\] does not accept nulls on some properties). This seems to be expected behavior.
- if I correct that last line and set up the namespace (as it should be), then the exception gets raised at the FIRST node.