I have working piece of code which takes an xml feed and transfers it into an object. This is all working and was just wondering since I am using an XMLReader is there anyway for me to capture the xml error (say if a date was 20/20/2011) and get the full xml tree that was passed.
I am basically doing the following
this I have wrapped in a try as I want to capture the error and add the failed xml subtree to an errorXml doc that is built up of all the failed updates.
I am not sure how the best way is to get the whole xml sub tree since XmlReader is read forward only?
Would it be best to get the outer xml and then convert it to the object or is there away to get it out of the exception?
View Complete Post