I want to check large files to make sure they are formatted correctly and all the tags are properly closed. The files are in xml, but it is hard to check manually since they are mainly attributes within elements. It's <item <element1 <att 'afasf'>><blah <foo 'afh'> <bar 'agh'>>>.. etc. It would be much easier to check if it was like this <element1> <att 'afasf'> </element1>. Unfortunately, that is the way it is. So I'm looking for something that can check the files against a DTD file.
If the code was in Java or Ruby, that'd be great. Anything else is fine as well. I definitely refer something free.
If the code was in Java or Ruby, that'd be great. Anything else is fine as well. I definitely refer something free.