I have a program that will read scripts, if i open new scripts with an older version of this software will catch an error: "There is an error in XML document(19,10)" and this cause i catch err as Exception. i want to keep this catch but i want to create another catch before this to catch this kind of error, when XML parse fail, I tried to use XMLException type but it will never catch the error and keep going to the general exception catch. any idea how to get the xml parse catch.
thank you
Exceptionis being reported? If it's only throwing a genericException(rather than more specificXMLExceptionetc) then you're out of luck. On the other hand a re-factor could trap the error when it happens (leaving other errors able to bubble out) or even drop whatever the assumption is that's causing the error.