Solved

How can i validate a html document for html syantax checking and css checking?

Posted on 2004-09-23
5
158 Views
Last Modified: 2010-05-02
How can i validate a html document for html syantax checking and css checking?
0
Comment
Question by:sunil_6
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 10

Accepted Solution

by:
fds_fatboy earned 50 total points
ID: 12131653
I would suggest you create the document using xhtml and use  MSXML4.dll to parse it.
0
 
LVL 3

Expert Comment

by:sgayatri
ID: 12131662
There is no tool except for your web browser for html syntax checking. If the html syntax is ok, then the page is displayed as per expectation, if there is any syntax error, the erroneous lines are ignored and the remaining page is displayed.
0
 

Author Comment

by:sunil_6
ID: 12131796
From where i will get MSXML4.dll
0
 

Author Comment

by:sunil_6
ID: 12131803
Can you give me some sample code to validate a html page
0
 
LVL 10

Expert Comment

by:fds_fatboy
ID: 12134034
Download it from here:
http://msdn.microsoft.com/XML/XMLDownloads/default.aspx

Sorry I have no sample code for xhtml, but the general idea is that you instatiate an XML DOM document object, load the xhtml schema into the schemas collection and then attempt to load the xhtml. This will then be parsed and if it fails, the load will fail. The parse error will then be available as a property of the DOM document.

I hope this helps.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question