XElement element; TRY { element=XElement.Load(filename); -- Add code to updload file here --Because if you reach here then it meant your file successfully } CATCH (exception ex) { -- Do not upload file and write code to handle invalid XML file }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)