A very simple tool for validating XML files.
It can validate a single XML file, or an entire folder.
I made this tool since HPL doesn't give you much information on what's wrong with your XML files.
And I thought that I might as well release it, so other people having trouble finding errors in their XML files could get a hand.
Requirements
Microsoft Windows
Microsoft .NET Framework 2.0
It will treat the following files as XML files:
- .xml
- .cfg
- .lang
- .map
- .snt
- .flash
- .comment
- .mat
- .ent
- .ho
Example output 1
Invalid custom_story_settings.cfg
HPL2 will print the following to the hpl.log file:
Quote:Error creating custom story from path "custom_stories/MortenASA" : could not find custom_story_settings.cfg file or it was invalid.
My tool will display the following message:
Quote:custom_story_settings.cfg: Data at the root level is invalid. Line 14, position 1.
Example output 2
Invalid extra_english.lang
HPL2 will print the following to the hpl.log file:
Quote:ERROR: Couldn't load language file 'custom_stories/MortenASA/extra_english.lang'
My tool will display the following message:
Quote:extra_english.lang: The 'LOL' start tag on line 20 does not match the end tag of 'lol'. Line 20, position 8.
Download
You can download the tool here:
http://www.amnesia.treesoft.dk/downloads...idator.zip