Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 9 Vote(s) - 3.22 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tool: XML Validator
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#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
Frontcannon Offline
Senior Member

Posts: 538
Threads: 10
Joined: Jul 2010
Reputation: 2
#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
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#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
waqas12346 Offline
Senior Member

Posts: 352
Threads: 38
Joined: Nov 2010
Reputation: 1
#4
RE: Tool: XML Validator

What does this software do? Huh
11-24-2010, 06:22 PM
Website Find
Frontcannon Offline
Senior Member

Posts: 538
Threads: 10
Joined: Jul 2010
Reputation: 2
#5
RE: Tool: XML Validator

It validates XML files?


╔═════════════════╗
☺ Smoke weed everyday ☺
╚═════════════════╝
11-24-2010, 07:08 PM
Find
house Offline
Member

Posts: 195
Threads: 11
Joined: Oct 2010
Reputation: 1
#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
PvtLastClass Offline
Junior Member

Posts: 29
Threads: 1
Joined: Nov 2010
Reputation: 0
#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




Users browsing this thread: 1 Guest(s)