Reputation: 2075
I am xml parsing but i getting issue on load xml file on browser
Its going to search closing tag of </r>
. but it can not find, so it return error
error look like:
XML Parsing Error: mismatched tag. Expected: </r>.
XML look like:
<shortdescription>Format : VCD<r>Language : English</shortdescription>
how to handle this situation pls give me idea.
thank you in advance.
Upvotes: 0
Views: 2027
Reputation: 163675
Your data is not well-formed XML, therefore the XML parser is doing the right thing by raising an error.
What would you do if there were a syntax error in your C# program? There's only one thing to do, fix it. If at all possible, fix the program or process that generates this bad data. If that's not possible, write a repair program to patch it up; but somehow, given the question, I suspect that's a task beyond your level of experience.
Upvotes: 2