validate.js

Service Station, by Aaron Skonnard

Syndication

validate.js is a command-line utility for validating an input document against a specified DTD or XML Schema definition. If you don't supply a DTD/schema, it simply reports whether the document is well-formed. Requires MSXML 4.0.

The help information is displayed if you run the utility from the command-line without supplying any arguments as illustrated here:

C:\>validate

usage: validate instance_file  ...

For example, the following command validates invoice.xml against invoice.xsd:

C:\>validate invoice.xml invoice.xsd

success: document conforms to DTD/Schema

If the document isn't valid, detailed error information is provided.

Download here.


Posted Jan 19 2004, 07:58 PM by Aaron Skonnard
Filed under:

Comments

Hakon wrote re: validate.js
on 01-22-2004 3:20 AM
The download link is pointing to localhost and I am pretty it's not available on my laptop yet :D
Aaron Skonnard wrote re: validate.js
on 01-26-2004 7:48 PM
Thanks, the link is working now.
Garrett Foster wrote Need Help
on 02-17-2004 9:42 AM
I was wondering how to make a page, (html) a printable page.
Miguel Madeira wrote re: validate.js
on 02-26-2004 3:48 AM
Hi Aaron,

I was at a training course in Sesimbra - Portugal, that you were there teaching us XML Web Services.

How are you? Fine, i hope.

I'm posting this comment, because i've download your validate.js tool, in order to validate a xml document, but i'm receiving this error, after running the following statement at a command line:

D:\Fileserver\Reference\Develop\XML\Tools\Validate\validate>validate D:\Fileserv
er\Desktop\catalog\catalog.xml D:\Fileserver\Desktop\catalog\catalog.xsd

The error is:

Script: D:\Fileserver\Reference\Develop\XML\Tools\Validate\validate\validate.js
Line: 20
Char: 4
Error: Object Required
Code: 800A01A8
Source: Microsoft JScript runtime error.

P.S: I have MSXML 4.0 Installed in my computer.

Best regards,

Miguel Madeira

cv wrote re: validate.js
on 03-30-2004 3:24 AM
zxcv
Mark wrote re: validate.js
on 06-08-2005 11:53 AM
Hello, is there anyway to validate a
file input?

<input type="file" name="photo" value="" size="30"></td>
<input type="hidden" name="@ _NoBlank_photo">

If you have an answer, please email me @ mmarky@gmail.com

Thanks!

Add a Comment

(required)  
(optional)
(required)  
Remember Me?