Load an xml file more than 0kb c#



I am trying to parse xml files there are many files and some are 0kb. When a file of 0kb is found it is throwing an exception root element is missing and ends. I have tried a try catch block but it does not continue after the error and the program stops.


Could someone please help me with this?


No comments:

Post a Comment