I have a large XML file (~18MB). Apparently there is a tag somewhere in it that isn’t closed. I know this because when I ran the W3C markup validation tool (validator.w3.org), I get the following error:
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
My question is how I might go about finding this missing closed element among the 500,000 lines in the file. Is there a tool I could use that would suggest places where there might be a problem — such as an element that has not been closed after a certain number of lines?
Any ideas would be much appreciated.
I use Notepad++ which has an excellent XML Tools plugin that lets you check XML Syntax and takes you to the line that is problematic. It also has useful utilities.