Computing.Net > Forums > Programming > C program

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C program

Reply to Message Icon

Name: prix2
Date: October 26, 2009 at 08:47:17 Pacific
OS: Macintosh
Subcategory: C/C++
Comment:

how to verify html code using C



Sponsored Link
Ads by Google

Response Number 1
Name: X-TechKid
Date: November 2, 2009 at 23:23:19 Pacific
Reply:

Hi prix2,

I guess u want to check the syntax of the html code and to find if there are any missing tags.

Create a file which contains tags in pair.
eg. <html></html><head></head>...
leave a line between each pair and save the file as somename.log
Write some code to find strings which starts with < and ends with > once tats done cross verify that tag with the log file using file opearations in C. Check if that tag ends with a closing tag. or check for typo errors. u can also specify certain tags in the log files as tags without closing tags using key words in log files..some thing like #NO#. U can add stuffs like checking for attributes and so on.. .. thereby creating ur own compiler for html codes... :)


0
Reply to Message Icon

Related Posts

See More


synchronise 2 folder stru... DOS batch to move files o...


Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: C program

c++ programming for novell www.computing.net/answers/programming/c-programming-for-novell/2525.html

Bike Trader C program www.computing.net/answers/programming/bike-trader-c-program/6557.html

C++ Programming Website www.computing.net/answers/programming/c-programming-website/4752.html