Hi,
I have taken a bit of time doing other parts of the application as I continue to start testing and then get a bit stuck.
I cannot tell you how many times I've hit similar problems ... object not found; null exception occurred while reading an xml file.
When this error happens, I do not have any other option but to stop testing and report the problem which puts another month delay in completing integration of this component into live operation.
Can you possibly consider other strategies for error handling!!!!!!!
1) Raise an Event
Consider raising an event when reading an xml file and a problem is found. This should say what the XML TAG is and the value that is not correct. Allow a default to be provided or an ignore this error or some other options.
From a debugging point of view, I'd at least be able to see where the problem is coming from. Today, I have no idea where the fault is in the XML.
From a development point of view, I may provide a valid value and allow the loading to continue or I could allow the fault to be ignored.
At least, I can continue and possibly handle the error and provide a work around for the short term.
2) Keep a log of the problems that can be reviewed after the read operation.
Log the problems and keep going and allow the application to review the log and continue or report to the user. At least MS Project reads the entire XML and indicates problems.
3) Provide an error indication that a TAG has not been implemented yet.
If I know a tag has not been implemented yet, there are ways to filter them out of the xml before the file is read or a better option is to just pass these tags through (rather than potentially not load).
4) Provide an indication of any missing or expected tags
If something is missing, that is necessary, provide an indication of what is missing so this can be provided to the user (or used in testing). This can be provided in a log or return array of errors.
Please figure out a better strategy for 'object not found' or 'nullreferenceexceptions'. I cannot continue to have 1 month delays for a solution.
I would appreciate this being given some priority as I'm about to renew my license and still have not turned on this feature.
Thanks in advance..
Regards, Bruce