Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Jtidy parse html table

Options
  • 21-04-2006 3:46am
    #1
    Registered Users Posts: 1,552 ✭✭✭


    How do I go about getting Jtidy to parse a html table?


Comments

  • Closed Accounts Posts: 261 ✭✭bishopLEN


    quinnd6 wrote:
    How do I go about getting Jtidy to parse a html table?
    Hi,
    I got JTidy to run just now. Have you it parsing any html ?
    I just saved the google home page for a test, it came up with 10 warnings:

    line 1 column 101 - Warning: <style> lacks "type" attribute
    line 7 column 1 - Warning: <script> lacks "type" attribute
    line 13 column 131 - Warning: <table> lacks "summary" attribute
    line 13 column 464 - Warning: trimming empty <b>
    line 14 column 29 - Warning: <script> lacks "type" attribute
    line 17 column 10 - Warning: <table> lacks "summary" attribute
    line 17 column 152 - Warning: unescaped & or unknown entity "&tab"
    line 17 column 280 - Warning: unescaped & or unknown entity "&tab"
    line 17 column 406 - Warning: unescaped & or unknown entity "&tab"
    line 17 column 641 - Warning: <table> lacks "summary" attribute

    The webpage has tables so I hope this helps, I will presume you have not got the program working if that's ok.

    I stuck the JTidy folder somewhere close to root eg. C:\Temp\
    I put the html Test there too (with the google page source)
    Went to the command prompt and ran

    java -jar C:\temp\jtidy\build\Tidy.jar C:\temp\jtidy\Test.htm

    Notice the spaces etc.

    That's about it !


Advertisement