Good Morning every one,
I have an application that is going to recieve the Xml file via Http post.
the Xml file will contain one root node and around 100 child nodes.
Each child node again has 4 childnodes.
if any one of the childnode is not well formed then by default my parser
(Xml TextReader) will stop parsing and will throw an error that" the starting tag doesnot match Ending tag" . once the parser is encountering such error the reader does not proceed further.
after a research i found that this kind of error is a fatal error and cannot be processed untill the file is corrected as per the Specifications.
i wanted to know is there any way to overcome such error programatically ?!
right now i am using XmlTextReader class to parse through the Xml file. i have chosen this class because of performance criteria and i am using While loop to iterate through the nodes repeatedly one after the other sequentially.
I would be really thankfull if some one helps me out!
I have an application that is going to recieve the Xml file via Http post.
the Xml file will contain one root node and around 100 child nodes.
Each child node again has 4 childnodes.
if any one of the childnode is not well formed then by default my parser
(Xml TextReader) will stop parsing and will throw an error that" the starting tag doesnot match Ending tag" . once the parser is encountering such error the reader does not proceed further.
after a research i found that this kind of error is a fatal error and cannot be processed untill the file is corrected as per the Specifications.
i wanted to know is there any way to overcome such error programatically ?!
right now i am using XmlTextReader class to parse through the Xml file. i have chosen this class because of performance criteria and i am using While loop to iterate through the nodes repeatedly one after the other sequentially.
I would be really thankfull if some one helps me out!
Comment