PDA

Click to See Complete Forum and Search --> : Batch Process W3C's HTML Validator


agmorgan
Jun 23rd, 2004, 06:28 AM
I've got a whole bunch of files that I want to validate.
Can anyone think of a way of validating them easily?
ie rather than individually selecting them on the W3C page

maybe having a file that I could click that would upload the files automatically?

Do you reckon its feasible?
Anyone have any idea how to do it?

vbNeo
Jun 25th, 2004, 05:57 AM
Originally posted by agmorgan
I've got a whole bunch of files that I want to validate.
Can anyone think of a way of validating them easily?
ie rather than individually selecting them on the W3C page

maybe having a file that I could click that would upload the files automatically?

Do you reckon its feasible?
Anyone have any idea how to do it?

Find out what paremeters are passed to the parsing script, and make an application that automatically parses based on your specific file....(assuming you know a programming language that is)

agmorgan
Jun 27th, 2004, 07:22 AM
If I wanted to batch check some files that were already online I could write
a script with a series of URLs along the lines of http://validator.w3.org/check?uri=MyPage etc
e.g
http://validator.w3.org/check?uri=http://validator.w3.org/
http://validator.w3.org/check?uri=http://www.google.com/
http://validator.w3.org/check?uri=http://www.microsoft.com/

So I was wondering if you can do a similar thing to simulate the post
function of a form? I dont know exactly how the form/input tags work
so I'm not sure how to do it or if it is possible.
Here is the relavent HTML from the w3c site <form method="post" enctype="multipart/form-data" action="check">
<p>
<label title="Choose a Local File to Upload and Validate" for="uploaded_file">Local File:
<input type="file" id="uploaded_file" name="uploaded_file" size="30" /></label>
<label title="Submit file for validation"><input type="submit" value="Check" /></label>
</p>
</form>
Is it possible to do it as above or would it need to be much more complicated?

Acidic
Jun 27th, 2004, 07:53 AM
try this code:

<form method="post" enctype="multipart/form-data" action="http://validator.w3.org/check">
<p>
<label title="Choose a Local File to Upload and Validate" for="uploaded_file">Local File:
<input type="file" id="uploaded_file" name="uploaded_file" size="30" /></label>
<label title="Submit file for validation"><input type="submit" value="Check" /></label>
</p>
</form>


I'm not sure how to make it do multiple files though.