.NET: Skipping a unvalid XML node?
XML / XSL
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I have to parse an XML file with a .NET XmlTextReader. The Read() method of this class moves from the current node to the next one. However, if it comes accross a node it can't read (ie: malformed/corrupted XML node), it cannot skip it and move to the next node: the program is stuck. Is there anyway to deal with this problem? Or is there a less restrictive .NET XML parser out there? (basically the parser is bugged at a node like as the comma is not a valid character to start a new attribute) Thank you!