PDA

View Full Version : HTML Validator Question


dode_toth
11-23-2005, 05:12 PM
I have to build a HTML validator using Java and don't have the faintest idea where to start. All the validator has to check is that lower case is used for the tags e.g. <p> not<P>, notify of any missing closing tags, missing single or double quotes around attributes, incorrect nesting, and the overall structure of an HTML page. I have thought about defining a BNF grammar for HTML and building a scanner to check the code is correct or using the DOM or SAX from XML.

I just don't have a clue where to start any pointers would be helpful.

Thanks George

windumi
12-07-2005, 06:26 AM
knowledge of "regular expression" will benefit you a lot