D
Dave
Hi,
I have a C# program that is parsing an XML file and
loading a database table. Some of the elements may be
missing but I want to continue with loading the data
anyway because they may not be applicable.
So, if '190' doesn't exist using the following code:
doc.SelectSingleNode("descendant::companyinfo
[@a:sourceid='190']/sourcekey/id", nsmgr).InnerText
will raise:
"Object reference not set to an instance of an object."
I just want to continue processing subsequent nodes. How
can I mimic the resume next in VB. Can you test for
certain exceptions and decide to continue.
Thanks Dave
I have a C# program that is parsing an XML file and
loading a database table. Some of the elements may be
missing but I want to continue with loading the data
anyway because they may not be applicable.
So, if '190' doesn't exist using the following code:
doc.SelectSingleNode("descendant::companyinfo
[@a:sourceid='190']/sourcekey/id", nsmgr).InnerText
will raise:
"Object reference not set to an instance of an object."
I just want to continue processing subsequent nodes. How
can I mimic the resume next in VB. Can you test for
certain exceptions and decide to continue.
Thanks Dave