Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 9 Votes - 3.22 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tool: XML Validator
Author Message
MulleDK19 Offline
Senior Member

Posts: 511
Joined: Jun 2009
Reputation: 8
Post: #1
Tool: XML Validator
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

[Image: 16455.png]
09-26-2010 02:48 PM
Find all posts by this user Quote this message in a reply
Frontcannon Offline
Senior Member

Posts: 538
Joined: Jul 2010
Reputation: 0
Post: #2
RE: Tool: XML Validator
111 internets? Too bad, that's too cool so I don't give you one Tongue

You'd definitely deserve it, but I think you know that already Big Grin


╔═════════════════╗
☺ Smoke weed everyday ☺
╚═════════════════╝
09-26-2010 11:38 PM
Find all posts by this user Quote this message in a reply
MulleDK19 Offline
Senior Member

Posts: 511
Joined: Jun 2009
Reputation: 8
Post: #3
RE: Tool: XML Validator
(09-26-2010 11:38 PM)Frontcannon Wrote:  111 internets? Too bad, that's too cool so I don't give you one Tongue

You'd definitely deserve it, but I think you know that already Big Grin

You could give it now then xD

Thanks anyway Tongue

[Image: 16455.png]
10-05-2010 09:40 AM
Find all posts by this user Quote this message in a reply
waqas12346 Offline
Senior Member

Posts: 420
Joined: Nov 2010
Reputation: 1
Post: #4
RE: Tool: XML Validator
What does this software do? Huh
11-24-2010 06:22 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Frontcannon Offline
Senior Member

Posts: 538
Joined: Jul 2010
Reputation: 0
Post: #5
RE: Tool: XML Validator
It validates XML files?


╔═════════════════╗
☺ Smoke weed everyday ☺
╚═════════════════╝
11-24-2010 07:08 PM
Find all posts by this user Quote this message in a reply
house Offline
Member

Posts: 194
Joined: Oct 2010
Reputation: 1
Post: #6
RE: Tool: XML Validator
(11-24-2010 06:22 PM)waqas12346 Wrote:  What does this software do? Huh

:O Didn't you read the description!?

11-24-2010 09:40 PM
Find all posts by this user Quote this message in a reply
PvtLastClass Offline
Junior Member

Posts: 29
Joined: Nov 2010
Reputation: 0
Post: #7
RE: Tool: XML Validator
Seems very useful!
One other way someone could try validating is with an XML-centered text editor, like Notepad++. If it looks at an XML file and you select a node, it will show you where it associates that node's ending (via highlighting). I think the syntax highlighting also messes up when the XML is not well-formed.
11-26-2010 01:27 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)