Results 1 to 4 of 4

Thread: Batch Process W3C's HTML Validator

  1. #1

    Thread Starter
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383

    Batch Process W3C's HTML Validator

    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?

  2. #2
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    Re: Batch Process W3C's HTML Validator

    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)
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  3. #3

    Thread Starter
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383
    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.gSo 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
    Code:
          <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?

  4. #4
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    try this code:
    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.
    Have I helped you? Please Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width